aboutsummaryrefslogtreecommitdiffstats
path: root/main/protobuf/ruby-fix-cflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/protobuf/ruby-fix-cflags.patch')
-rw-r--r--main/protobuf/ruby-fix-cflags.patch9
1 files changed, 4 insertions, 5 deletions
diff --git a/main/protobuf/ruby-fix-cflags.patch b/main/protobuf/ruby-fix-cflags.patch
index 690868d1ea..811a66c47d 100644
--- a/main/protobuf/ruby-fix-cflags.patch
+++ b/main/protobuf/ruby-fix-cflags.patch
@@ -1,5 +1,4 @@
-This fixes problem with missing symbol __va_copy, see
-https://github.com/protocolbuffers/protobuf/pull/6848.
+Using builder flags
--- a/ruby/ext/google/protobuf_c/extconf.rb
+++ b/ruby/ext/google/protobuf_c/extconf.rb
@@ -7,10 +6,10 @@ https://github.com/protocolbuffers/protobuf/pull/6848.
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"
+- $CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement"
++ $CFLAGS += " -std=gnu99 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement"
else
-- $CFLAGS += " -std=gnu90 -O3 -DNDEBUG"
+- $CFLAGS += " -std=gnu99 -O3 -DNDEBUG"
+ $CFLAGS += " -std=gnu99 -DNDEBUG"
end