diff options
author | 2017-04-26 15:37:42 +0200 | |
---|---|---|
committer | 2017-05-02 09:51:34 +0200 | |
commit | 2b49f678a7dfaf27afc0e44ed7a65b00ec06d413 (patch) | |
tree | c1c46d0f1f66859ff42fd41f0aefb6436c9f4507 /third_party/protobuf/3.2.0/ruby/ext/google/protobuf_c/extconf.rb | |
parent | b712f335a945c81a6b77fd48e96103ff09c8967b (diff) |
Update third_party/protobuf to pre-release 3.2.0
Update protobuf to @laszlocsomor's fork of protobuf. This is essentially
the development version of protobuf 3.2.0 and windows specific fixes
from laszlo. Those fixes will be merged into protobuf soon:
https://github.com/google/protobuf/pull/2969.
Change-Id: Id88cd7e5b2c27ab74f3ecfa1e127e5a863f2deb3
Diffstat (limited to 'third_party/protobuf/3.2.0/ruby/ext/google/protobuf_c/extconf.rb')
-rw-r--r-- | third_party/protobuf/3.2.0/ruby/ext/google/protobuf_c/extconf.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/protobuf/3.2.0/ruby/ext/google/protobuf_c/extconf.rb b/third_party/protobuf/3.2.0/ruby/ext/google/protobuf_c/extconf.rb new file mode 100644 index 0000000000..0886e60708 --- /dev/null +++ b/third_party/protobuf/3.2.0/ruby/ext/google/protobuf_c/extconf.rb @@ -0,0 +1,17 @@ +#!/usr/bin/ruby + +require 'mkmf' + +$CFLAGS += " -std=c99 -O3 -DNDEBUG" + + +if RUBY_PLATFORM =~ /linux/ + # Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper. + $LDFLAGS += " -Wl,-wrap,memcpy" +end + +$objs = ["protobuf.o", "defs.o", "storage.o", "message.o", + "repeated_field.o", "map.o", "encode_decode.o", "upb.o", + "wrap_memcpy.o"] + +create_makefile("google/protobuf_c") |