]> git.pld-linux.org Git - packages/protobuf.git/blob - no-wrap-memcpy.patch
- rebuild with python 3.8
[packages/protobuf.git] / no-wrap-memcpy.patch
1 --- protobuf-3.7.0/ruby/ext/google/protobuf_c/extconf.rb        2019-03-12 12:41:06.025000000 +0100
2 +++ protobuf-3.7.0/ruby/ext/google/protobuf_c/extconf.rb        2019-03-12 12:42:04.062000000 +0100
3 @@ -5,19 +5,12 @@
4  if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
5    # XOPEN_SOURCE needed for strptime:
6    # https://stackoverflow.com/questions/35234152/strptime-giving-implicit-declaration-and-undefined-reference
7 -  $CFLAGS += " -std=c99 -O3 -DNDEBUG -D_XOPEN_SOURCE=700"
8 +  $CFLAGS += " -std=c99 -DNDEBUG -D_XOPEN_SOURCE=700"
9  else
10 -  $CFLAGS += " -std=c99 -O3 -DNDEBUG"
11 -end
12 -
13 -
14 -if RUBY_PLATFORM =~ /linux/
15 -  # Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper.
16 -  $LDFLAGS += " -Wl,-wrap,memcpy"
17 +  $CFLAGS += " -std=c99 -DNDEBUG"
18  end
19  
20  $objs = ["protobuf.o", "defs.o", "storage.o", "message.o",
21 -         "repeated_field.o", "map.o", "encode_decode.o", "upb.o",
22 -         "wrap_memcpy.o"]
23 +         "repeated_field.o", "map.o", "encode_decode.o", "upb.o" ]
24  
25  create_makefile("google/protobuf_c")
This page took 0.057871 seconds and 3 git commands to generate.