From bb1423cd5262122877bb386816a27da3b0b8f2ae Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Wed, 28 Apr 2021 15:44:54 -0700 Subject: [PATCH] Set frame pointer in cflags instead of optargs !401 set `optflags`, but this overrode the default `-O3`. Using cflags appends to the default CFLAGS. --- scripts/install-ruby | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install-ruby b/scripts/install-ruby index d8e350d..b08ff9d 100755 --- a/scripts/install-ruby +++ b/scripts/install-ruby @@ -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