ports/devel/rubygem-google-protobuf/files/patch-hide-symbols
2022-11-19 16:13:12 +08:00

11 lines
484 B
Text

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