Skip to content

Commit

Permalink
devel/rubygem-zstd-ruby: Fix build with Ruby 3.1 and 12.3-RELEASE
Browse files Browse the repository at this point in the history
PR:		269165
Approved by:	maintainer timeout
  • Loading branch information
Yasuhiro Kimura authored and Yasuhiro Kimura committed Feb 10, 2023
1 parent c46f8eb commit 10fc140
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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

0 comments on commit 10fc140

Please sign in to comment.