[openlibm] Fix build on armv7hl

Peter Robinson pbrobinson at fedoraproject.org
Sat Oct 25 17:04:33 UTC 2014


commit 22d3cd14d761c49c3a7a6da71fc45fb71ac0f158
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Sat Oct 25 18:03:50 2014 +0100

    Fix build on armv7hl

 openlibm.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/openlibm.spec b/openlibm.spec
index f468a38..67b72ce 100644
--- a/openlibm.spec
+++ b/openlibm.spec
@@ -3,14 +3,14 @@
 Summary:        High quality system independent, open source libm
 Name:           openlibm
 Version:        0.4
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        BSD and MIT and ISC and Public Domain
 Group:          System Environment/Libraries
 Source0:        https://github.com/JuliaLang/openlibm/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 URL:            https://github.com/JuliaLang/openlibm/
 # openlibm does not currently build properly on non-x86 architectures
 # https://github.com/JuliaLang/openlibm/issues/18
-ExclusiveArch:  %{ix86} x86_64
+ExclusiveArch:  %{ix86} x86_64 %{arm}
 
 %description
 OpenLIBM is an effort to have a high quality standalone LIBM library.
@@ -72,7 +72,8 @@ make %{?_smp_mflags} \
 make install prefix=%{_prefix} \
              libdir=%{_libdir} \
              includedir=%{_includedir} \
-             DESTDIR=%{buildroot}
+             DESTDIR=%{buildroot} \
+             ARCH=%{arch}
 
 %if ! %{with static_libs}
 rm %{buildroot}/%{_libdir}/libopenlibm.a
@@ -97,6 +98,9 @@ rm %{buildroot}/%{_libdir}/libopenlibm.a
 %endif
 
 %changelog
+* Sat Oct 25 2014 Peter Robinson <pbrobinson at fedoraproject.org> 0.4-3
+- Fix build on armv7hl
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list