user/protobuf: new aport
This commit is contained in:
parent
a04c921a0b
commit
3befac4b9a
7 changed files with 470 additions and 0 deletions
18
user/protobuf/ruby-fix-cflags.patch
Normal file
18
user/protobuf/ruby-fix-cflags.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
Using builder flags
|
||||
|
||||
diff --git a/ruby/ext/google/protobuf_c/extconf.rb b/ruby/ext/google/protobuf_c/extconf.rb
|
||||
index b7c439b..0bbc15c 100755
|
||||
--- a/ruby/ext/google/protobuf_c/extconf.rb
|
||||
+++ b/ruby/ext/google/protobuf_c/extconf.rb
|
||||
@@ -7,9 +7,9 @@ ext_name = "google/protobuf_c"
|
||||
dir_config(ext_name)
|
||||
|
||||
if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /freebsd/
|
||||
- $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
|
||||
|
||||
if RUBY_PLATFORM =~ /linux/
|
Loading…
Add table
Add a link
Reference in a new issue