[packages/hdf] - fix building on x32 - rel 2
baggins
baggins at pld-linux.org
Sat Mar 7 00:39:57 CET 2015
commit 36094dd5f31acdcb6d7a122f84a8b0030ba19e9f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Mar 6 23:39:36 2015 +0000
- fix building on x32
- rel 2
hdf.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/hdf.spec b/hdf.spec
index ac30588..bb30166 100644
--- a/hdf.spec
+++ b/hdf.spec
@@ -6,7 +6,7 @@ Summary: Hierarchical Data Format library
Summary(pl.UTF-8): Biblioteka HDF (Hierarchical Data Format)
Name: hdf
Version: 4.2.11
-Release: 1
+Release: 2
Epoch: 1
Group: Libraries
License: Nearly BSD, but changed sources must be marked
@@ -128,7 +128,11 @@ sed -i '/^if HDF_BUILD_XDR/,/^endif/d;/^if HDF_BUILD_SHARED/,/^endif/d' config/c
%{__automake}
# need to pass F77 to override F77=g77 in config/linux-gnu
%configure \
+%ifarch x32
+ F77="x86_64-pld-linux-gnux32-gfortran" \
+%else
F77="%{_target_cpu}-pld-linux-gfortran" \
+%endif
--enable-shared \
%{?with_szip:--with-szlib}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hdf.git/commitdiff/36094dd5f31acdcb6d7a122f84a8b0030ba19e9f
More information about the pld-cvs-commit
mailing list