conditionalize optflag changes
This commit is contained in:
parent
b69868db4e
commit
02172dced2
4
R.spec
4
R.spec
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user