aboutsummaryrefslogtreecommitdiffstats
path: root/main/protobuf/ruby-fix-cflags.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-02-18 22:45:50 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-02-18 22:45:05 +0100
commit76d4cd9306804eb30e35a367176c503eda25e1c8 (patch)
treebf48b1d0e81930c04cc65b38318b0fca035fab55 /main/protobuf/ruby-fix-cflags.patch
parent3ae3f40d1661e1061805c21501c083ad87634698 (diff)
downloadaports-76d4cd9306804eb30e35a367176c503eda25e1c8.tar.bz2
aports-76d4cd9306804eb30e35a367176c503eda25e1c8.tar.xz
main/protobuf: fix ruby gem - missing symbol __va_copy
Diffstat (limited to 'main/protobuf/ruby-fix-cflags.patch')
-rw-r--r--main/protobuf/ruby-fix-cflags.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/protobuf/ruby-fix-cflags.patch b/main/protobuf/ruby-fix-cflags.patch
new file mode 100644
index 0000000000..690868d1ea
--- /dev/null
+++ b/main/protobuf/ruby-fix-cflags.patch
@@ -0,0 +1,17 @@
+This fixes problem with missing symbol __va_copy, see
+https://github.com/protocolbuffers/protobuf/pull/6848.
+
+--- a/ruby/ext/google/protobuf_c/extconf.rb
++++ b/ruby/ext/google/protobuf_c/extconf.rb
+@@ -3,9 +3,9 @@
+ require 'mkmf'
+
+ if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
+- $CFLAGS += " -std=gnu90 -O3 -DNDEBUG -Wall -Wdeclaration-after-statement -Wsign-compare"
++ $CFLAGS += " -std=gnu99 -DNDEBUG -Wall -Wdeclaration-after-statement -Wsign-compare"
+ else
+- $CFLAGS += " -std=gnu90 -O3 -DNDEBUG"
++ $CFLAGS += " -std=gnu99 -DNDEBUG"
+ end
+
+