git: 10fc14015192 - main - devel/rubygem-zstd-ruby: Fix build with Ruby 3.1 and 12.3-RELEASE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Feb 2023 05:51:43 UTC
The branch main has been updated by yasu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=10fc14015192894961b45bd888065c482af1a858
commit 10fc14015192894961b45bd888065c482af1a858
Author: Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2023-01-26 09:49:37 +0000
Commit: Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2023-02-10 05:50:20 +0000
devel/rubygem-zstd-ruby: Fix build with Ruby 3.1 and 12.3-RELEASE
PR: 269165
Approved by: maintainer timeout
---
devel/rubygem-zstd-ruby/files/patch-ext_zstdruby_extconf.rb | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/devel/rubygem-zstd-ruby/files/patch-ext_zstdruby_extconf.rb b/devel/rubygem-zstd-ruby/files/patch-ext_zstdruby_extconf.rb
new file mode 100644
index 000000000000..b939c97d24f8
--- /dev/null
+++ b/devel/rubygem-zstd-ruby/files/patch-ext_zstdruby_extconf.rb
@@ -0,0 +1,10 @@
+--- ext/zstdruby/extconf.rb.orig 2023-01-26 09:37:28 UTC
++++ ext/zstdruby/extconf.rb
+@@ -1,6 +1,6 @@
+ require "mkmf"
+
+-$CFLAGS = '-I. -O3 -std=c99'
++$CFLAGS = '-fdeclspec -I. -O3 -std=c99'
+ $CPPFLAGS += " -fdeclspec" if CONFIG['CXX'] =~ /clang/
+
+ Dir.chdir File.expand_path('..', __FILE__) do