Skip to content

Commit

Permalink
[gcc] Filter some opt flags. Contributes JB#47987
Browse files Browse the repository at this point in the history
  • Loading branch information
xfade committed Feb 10, 2020
1 parent dee3a79 commit 642e4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc.spec
Expand Up @@ -542,7 +542,7 @@ OPT_FLAGS=`echo %{optflags}|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g'`
#OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/\(-Wp,\)\?-D_GLIBCXX_ASSERTIONS//g'`
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
#OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/ -pipe / /g'`
#OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=format-security//g'`
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=format-security//g'`
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=implicit-function-declaration//g'`
#OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Wl,-z,defs -Wl,-z,now -Wl,-z,relro//g'`
%ifarch %{ix86}
Expand Down

0 comments on commit 642e4b0

Please sign in to comment.