Skip to content

Commit

Permalink
devel/rubygem-thrift: Fix build with Ruby 3.1 and 12.3-RELEASE
Browse files Browse the repository at this point in the history
PR:		269152
Approved by:	maintainer timeout
  • Loading branch information
Yasuhiro Kimura authored and Yasuhiro Kimura committed Feb 10, 2023
1 parent aa2a4b5 commit c46f8eb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions devel/rubygem-thrift/files/patch-ext_extconf.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- ext/extconf.rb.orig 2023-01-25 18:49:19 UTC
+++ ext/extconf.rb
@@ -26,7 +26,7 @@ else
$ARCH_FLAGS = RbConfig::CONFIG['CFLAGS'].scan( /(-arch )(\S+)/ ).map{|x,y| x + y + ' ' }.join('')


- $CFLAGS = "-fsigned-char -g -O2 -Wall -Werror " + $ARCH_FLAGS
+ $CFLAGS = "-fdeclspec -fsigned-char -g -O2 -Wall -Werror " + $ARCH_FLAGS

have_func("strlcpy", "string.h")

0 comments on commit c46f8eb

Please sign in to comment.