From d61083bdcf27ec576713e3281634774440a9b985 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Fri, 25 Apr 2014 11:34:29 -0400 Subject: [PATCH] fix build in rawhide --- R.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/R.spec b/R.spec index 9620350..9b63f74 100644 --- a/R.spec +++ b/R.spec @@ -315,7 +315,11 @@ case "%{_target_cpu}" in ;; esac -export FCFLAGS="%{optflags}" +# 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" ( %configure \ %if %{system_tre} --with-system-tre \