1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

devel/rubygem-thrift: Fix build with Ruby 3.1 and 12.3-RELEASE

PR:		269152
Approved by:	maintainer timeout
This commit is contained in:
Yasuhiro Kimura 2023-01-26 03:52:30 +09:00
parent aa2a4b5de4
commit c46f8eb79c

View File

@ -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")