Set frame pointer in cflags instead of optargs

!401 set `optflags`, but this overrode the default `-O3`. Using cflags
appends to the default CFLAGS.
This commit is contained in:
Stan Hu 2021-04-28 15:44:54 -07:00
parent 83c6bd9076
commit bb1423cd52
No known key found for this signature in database
GPG key ID: 8D3931AD39CC7A20

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