conditionalize optflag changes

This commit is contained in:
Tom Callaway 2014-04-29 13:29:25 -04:00
parent b69868db4e
commit 02172dced2

4
R.spec
View File

@ -329,11 +329,15 @@ case "%{_target_cpu}" in
;;
esac
%if 0%{?fedora} >= 21
# With gcc 4.9, if we don't pass -ffat-lto-objects along with -flto, Matrix builds without the needed object code
# ... and doesn't work at all as a result.
export CFLAGS="%{optflags} -ffat-lto-objects"
export CXXFLAGS="%{optflags} -ffat-lto-objects"
export FCFLAGS="%{optflags} -ffat-lto-objects"
%else
export FCFLAGS="%{optflags}"
%endif
( %configure \
%if %{system_tre}
--with-system-tre \