Index: google-protobuf-3.25.1/ext/google/protobuf_c/extconf.rb =================================================================== --- google-protobuf-3.25.1.orig/ext/google/protobuf_c/extconf.rb +++ google-protobuf-3.25.1/ext/google/protobuf_c/extconf.rb @@ -12,17 +12,12 @@ else $CFLAGS += " -std=gnu99 -O3 -DNDEBUG" end -if RUBY_PLATFORM =~ /linux/ - # Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper. - $LDFLAGS += " -Wl,-wrap,memcpy" -end - $VPATH << "$(srcdir)/third_party/utf8_range" $INCFLAGS += " -I$(srcdir)/third_party/utf8_range" $srcs = ["protobuf.c", "convert.c", "defs.c", "message.c", - "repeated_field.c", "map.c", "ruby-upb.c", "wrap_memcpy.c", + "repeated_field.c", "map.c", "ruby-upb.c", "naive.c", "range2-neon.c", "range2-sse.c", "shared_convert.c", "shared_message.c"] create_makefile(ext_name)