diff --git a/ruby/ext/google/protobuf_c/extconf.rb b/ruby/ext/google/protobuf_c/extconf.rb index 5cc45337b804..38bb8c970ae1 100755 --- a/ruby/ext/google/protobuf_c/extconf.rb +++ b/ruby/ext/google/protobuf_c/extconf.rb @@ -6,7 +6,7 @@ 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"