]> git.pld-linux.org Git - packages/protobuf.git/blob - no-wrap-memcpy.patch
rebuild with separate debuginfo build-ids
[packages/protobuf.git] / no-wrap-memcpy.patch
1 --- protobuf-3.11.4/ruby/ext/google/protobuf_c/extconf.rb~      2020-02-14 21:13:37.000000000 +0100
2 +++ protobuf-3.11.4/ruby/ext/google/protobuf_c/extconf.rb       2020-04-07 22:56:24.419874091 +0200
3 @@ -3,19 +3,17 @@
4  require 'mkmf'
5  
6  if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
7 -  $CFLAGS += " -std=gnu90 -O3 -DNDEBUG -Wall -Wdeclaration-after-statement -Wsign-compare"
8 +  $CFLAGS += " -std=gnu90 -DNDEBUG -Wall -Wdeclaration-after-statement -Wsign-compare"
9  else
10 -  $CFLAGS += " -std=gnu90 -O3 -DNDEBUG"
11 +  $CFLAGS += " -std=gnu90 -DNDEBUG"
12  end
13  
14  
15  if RUBY_PLATFORM =~ /linux/
16 -  # Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper.
17 -  $LDFLAGS += " -Wl,-wrap,memcpy"
18 +  $LDFLAGS += " -std=c99 -DNDEBUG"
19  end
20  
21  $objs = ["protobuf.o", "defs.o", "storage.o", "message.o",
22 -         "repeated_field.o", "map.o", "encode_decode.o", "upb.o",
23 -         "wrap_memcpy.o"]
24 +         "repeated_field.o", "map.o", "encode_decode.o", "upb.o" ]
25  
26  create_makefile("google/protobuf_c")
This page took 0.067116 seconds and 3 git commands to generate.