From 42dc4ebbe9992e4478d0f16dfacf5bc016809ad9 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Tue, 29 Apr 2014 13:30:55 -0400 Subject: [PATCH] conditionalize optflag changes --- R.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R.spec b/R.spec index 9037f0c..1b5652b 100644 --- a/R.spec +++ b/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 \