diff --git a/clisp.spec b/clisp.spec index a574085..9c59924 100644 --- a/clisp.spec +++ b/clisp.spec @@ -171,7 +171,7 @@ else CC="gcc" fi %ifarch s390x -##RPM_OPT_FLAGS="$(echo %{optflags}|sed -r 's/-fstack-protector-strong ?//g;s/-f(stack-clash-protection)/-fno-\1/') -fno-stack-limit" +%{expand:%%global optflags %(echo "%{optflags}"|sed -r -e s/-fstack-protector-strong// -e s/-fstack-clash-protection//)} %endif CC="${CC} -g %{optflags} -fno-strict-aliasing -fPIC -pipe" case "$(uname -m)" in