Adapt to new way of redhat-rpm-config setting fortify flags
This commit is contained in:
parent
dd92515693
commit
3dab9de8f0
4
gcc.spec
4
gcc.spec
@ -920,7 +920,9 @@ export CONFIG_SITE=NONE
|
||||
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
OPT_FLAGS=`echo %{optflags}|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[123]//g'`
|
||||
OPT_FLAGS="%{optflags}"
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=[123]//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[123]//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/\(-Wp,\)\?-U_FORTIFY_SOURCE//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-flto=auto//g;s/-flto//g;s/-ffat-lto-objects//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
|
||||
|
Loading…
Reference in New Issue
Block a user