[R/el6] conditionalize lto

Tom Callaway spot at fedoraproject.org
Tue Apr 29 17:57:19 UTC 2014


commit c93c432678a15fccbf198d2a759708117955b95e
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Tue Apr 29 13:57:14 2014 -0400

    conditionalize lto

 R.spec |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/R.spec b/R.spec
index 1b5652b..d91e68a 100644
--- a/R.spec
+++ b/R.spec
@@ -7,14 +7,21 @@
 # Assume not modern. Override if needed.
 %global modern 0
 
+%global with_lto 0
+
 %global system_tre 0
 # We need to use system tre on F21+/RHEL7
 %if 0%{?fedora} >= 21
 %global system_tre 1
 %endif
 
+%if 0%{?fedora} >= 19
+%global with_lto 1
+%endif
+
 %if 0%{?rhel} >= 7
 %global system_tre 1
+%global with_lto 1
 %endif
 
 %if 0%{?fedora}
@@ -349,11 +356,12 @@ export FCFLAGS="%{optflags}"
     --with-tk-config=%{_libdir}/tkConfig.sh \
     --enable-R-shlib \
     --enable-prebuilt-html \
-%if %{modern}
+%if %{with_lto}
 %ifnarch %{arm}
     --enable-lto \
 %endif
 %endif
+
     rdocdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
     rincludedir=%{_includedir}/R \
     rsharedir=%{_datadir}/R) \


More information about the scm-commits mailing list