From 395033ba6b6c78dd2e77f9fa3481df3e80426732 Mon Sep 17 00:00:00 2001 From: Jarek Prokop Date: Thu, 16 Mar 2023 15:51:04 +0100 Subject: [PATCH] Disable wrapping memcpy for Fedora Wrapping exists to extend compatibility with multiple glibc versions. Upstream links against v2.2.5 of memcpy. 1. We do not care about multiple glibc versions as we build against single glibc version. 2. It does not work with LTO. See upstream bug report. https://github.com/protocolbuffers/protobuf/issues/11935 --- ruby/ext/google/protobuf_c/extconf.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruby/ext/google/protobuf_c/extconf.rb b/ruby/ext/google/protobuf_c/extconf.rb index b7c439b0b..7fc63af36 100755 --- a/ruby/ext/google/protobuf_c/extconf.rb +++ b/ruby/ext/google/protobuf_c/extconf.rb @@ -12,10 +12,10 @@ 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 +# 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" -- 2.40.0.rc2