From 82d425515d2c1a14f964fc7a571e272f933bba7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 7 Jul 2021 17:50:11 +0900 Subject: [PATCH] comment about the situation [ci skip] --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 9ce7538aae..4f669db8a6 100644 --- a/configure.ac +++ b/configure.ac @@ -3383,6 +3383,12 @@ AS_CASE("$enable_shared", [yes], [ AC_DEFINE_UNQUOTED(LIBDIR_BASENAME, ["${libdir_basename}"]) libdir_basename="${libdir_basename}"${multiarch+'/${arch}'} + # Debian bullseye reportedly has its ld(1) patched, which breaks + # --enable-shared --with-jemalloc combination. We might have to deal with + # the ld(1) change sooner or later, but in the meantime let us force it + # the old way. + # + # See https://github.com/ruby/ruby/pull/4627 RUBY_TRY_LDFLAGS([${linker_flag}--no-as-needed], [no_as_needed=yes], [no_as_needed=no]) AS_IF([test "$no_as_needed" = yes], [ RUBY_APPEND_OPTIONS(LDFLAGS, [${linker_flag}--no-as-needed])