summaryrefslogtreecommitdiff
path: root/devel/rubygem-google-protobuf/files/patch-hide-symbols
blob: 4e85cdbb04e7074315bedfa6b17c8c8905c32961 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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"