diff --git a/SPECS/nodejs.spec b/SPECS/nodejs.spec index ef2c5dd..e6b54e6 100644 --- a/SPECS/nodejs.spec +++ b/SPECS/nodejs.spec @@ -372,6 +372,14 @@ export CXXFLAGS='%{optflags} -g \ -DZLIB_CONST \ -fno-delete-null-pointer-checks' +%ifarch %{arm} +# Decrease debuginfo verbosity to reduce memory consumption during final +# library linking +%global optflags %(echo %{optflags} | sed 's/-g /-g1 /') +export CFLAGS=$(echo ${CFLAGS} | sed 's/-g /-g1 /g') +export CXXFLAGS=$(echo ${CXXFLAGS} | sed 's/-g /-g1 /g') +%endif + # Explicit new lines in C(XX)FLAGS can break naive build scripts export CFLAGS="$(echo ${CFLAGS} | tr '\n\\' ' ')" export CXXFLAGS="$(echo ${CXXFLAGS} | tr '\n\\' ' ')"