diff --git a/scripts/install-ruby b/scripts/install-ruby index b08ff9d..15dedb2 100755 --- a/scripts/install-ruby +++ b/scripts/install-ruby @@ -55,6 +55,8 @@ if [[ -d "/patches/ruby/$RUBY_VERSION" ]]; then fi # Compile +# This is needed for Ruby < 3.1 on Debian bullseye: https://bugs.ruby-lang.org/issues/18409 +export LDFLAGS="-Wl,--no-as-needed" cflags="-fno-omit-frame-pointer" ./configure --enable-shared --with-jemalloc --disable-install-doc --disable-install-rdoc --disable-install-capi make install -j $(nproc)