Merge branch 'sh-ruby-ldflags-prep' into 'master'

Ensure jemalloc is always linked with ruby binary

See merge request gitlab-org/gitlab-build-images!481
This commit is contained in:
Balasankar 'Balu' C 2022-02-07 07:34:08 +00:00
commit cc18fe8b5b

View file

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