comment about the situation [ci skip]

This commit is contained in:
卜部昌平 2021-07-07 17:50:11 +09:00
parent 737e4432b9
commit 82d425515d
Notes: git 2021-07-07 20:31:48 +09:00

View File

@ -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])