Merge branch 'sh-optimize-ruby' into 'master'

Set frame pointer in cflags instead of optargs

See merge request gitlab-org/gitlab-build-images!402
This commit is contained in:
Stan Hu 2021-04-28 23:01:15 +00:00
commit 1bbac35a38

View file

@ -55,8 +55,7 @@ if [[ -d "/patches/ruby/$RUBY_VERSION" ]]; then
fi
# Compile
export optflags="-fno-omit-frame-pointer"
./configure --enable-shared --with-jemalloc --disable-install-doc --disable-install-rdoc --disable-install-capi
cflags="-fno-omit-frame-pointer" ./configure --enable-shared --with-jemalloc --disable-install-doc --disable-install-rdoc --disable-install-capi
make install -j $(nproc)
# Cleanup