Files
QTradeProgram/protobuf/ruby/ext/google/protobuf_c/extconf.rb

18 lines
403 B
Ruby
Raw Normal View History

2025-08-15 15:56:40 +08:00
#!/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")