Red Hat Bugzilla – Bug 158863
Line removing -fno-rtti and -fno-exceptions in gcc4.spec has no effect
Last modified: 2007-11-30 17:11:06 EST
Description of problem:
The following line in gcc4.spec has no effect:
OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g'`
because it is immediately followed by this line:
OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=//g'`
which throws away the old value of $OPT_FLAGS. The line should be removed (if
unneeded) or corrected (if needed).
Version-Release number of selected component (if applicable):
The first line is not needed, I have removed it from CVS so that it doesn't
confuse. Will show up in the next build, but as it is actually not any bug,
might not make into FC4 release.