diff options
Diffstat (limited to 'repo/protobuf/ruby-fix-cflags.patch')
-rw-r--r-- | repo/protobuf/ruby-fix-cflags.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/repo/protobuf/ruby-fix-cflags.patch b/repo/protobuf/ruby-fix-cflags.patch new file mode 100644 index 0000000..19fddc4 --- /dev/null +++ b/repo/protobuf/ruby-fix-cflags.patch @@ -0,0 +1,16 @@ +Using builder flags + +--- a/ruby/ext/google/protobuf_c/extconf.rb 2021-10-05 00:43:33.000000000 +0000 ++++ b/ruby/ext/google/protobuf_c/extconf.rb 2021-10-06 12:04:49.732008151 +0000 +@@ -3,9 +3,9 @@ + require 'mkmf' + + if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ +- $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=gnu99 -O3 -DNDEBUG" ++ $CFLAGS += " -std=gnu99 -DNDEBUG" + end + + |