diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-11-19 16:13:12 +0800 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-11-19 16:13:12 +0800 |
commit | 8b0aa0f0a0ae46f1ddbcc526e20c2f427669eb0c (patch) | |
tree | e1c0d3eff96633ca50c95038b1d7b4d3c56d8e96 /devel/rubygem-google-protobuf/files/patch-hide-symbols | |
parent | devel/rubygem-console: Update to 1.16.2 (diff) |
devel/rubygem-google-protobuf: Rename patch file
Diffstat (limited to 'devel/rubygem-google-protobuf/files/patch-hide-symbols')
-rw-r--r-- | devel/rubygem-google-protobuf/files/patch-hide-symbols | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/rubygem-google-protobuf/files/patch-hide-symbols b/devel/rubygem-google-protobuf/files/patch-hide-symbols new file mode 100644 index 000000000000..4e85cdbb04e7 --- /dev/null +++ b/devel/rubygem-google-protobuf/files/patch-hide-symbols @@ -0,0 +1,11 @@ +--- ext/google/protobuf_c/extconf.rb.orig 2022-10-28 07:09:57 UTC ++++ ext/google/protobuf_c/extconf.rb +@@ -6,7 +6,7 @@ ext_name = "google/protobuf_c" + + dir_config(ext_name) + +-if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ ++if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /freebsd/ + $CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement" + else + $CFLAGS += " -std=gnu99 -O3 -DNDEBUG" |