summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Merinov <n.merinov@samsung.com>2019-01-30 14:59:47 (GMT)
committerNikolai Merinov <n.merinov@samsung.com>2019-01-30 15:32:21 (GMT)
commit81ed6aa79a9820a8f91a09b8da0bf7b3d20a279a (patch)
tree597567eedf5b2cf7c0cb72babdcb6fe6d2847598
parentf37c1f047785632cc046080e2fd27f46e42607cb (diff)
downloadhdf5-sandbox/nmerinov/llvm.zip
hdf5-sandbox/nmerinov/llvm.tar.gz
hdf5-sandbox/nmerinov/llvm.tar.bz2
Replace hardcoded gcc with CC, install all required fortran librariessandbox/nmerinov/llvm
-rw-r--r--packaging/hdf5.spec15
1 files changed, 12 insertions, 3 deletions
diff --git a/packaging/hdf5.spec b/packaging/hdf5.spec
index 37184ed..1975413 100644
--- a/packaging/hdf5.spec
+++ b/packaging/hdf5.spec
@@ -43,8 +43,17 @@ Url: http://www.hdfgroup.org/HDF5/
Source0: %{name}-%{version}.tar.gz
Source1001: hdf5.manifest
BuildRequires: fdupes
+BuildRequires: gcc
+%ifarch %{arm}
+BuildRequires: gcc-accel-armv7l-cross-arm
+BuildRequires: gcc-accel-armv7l-cross-arm
+%endif
+%ifarch aarch64
+BuildRequires: gcc-accel-aarch64-cross-aarch64
+BuildRequires: gcc-accel-aarch64-cross-aarch64
+%endif
BuildRequires: gcc-c++
-BuildRequires: gcc-fortran
+BuildRequires: gcc-fortran libgfortran
BuildRequires: krb5-devel
%if 0%{?use_sz2}
BuildRequires: libsz2-devel
@@ -371,8 +380,8 @@ for build_dir in build %{_mpi}; do
done
%build
-export CC=gcc
-export CXX=g++
+export CC="${CC:-gcc}"
+export CXX="${CXX:-g++}"
export F9X=gfortran
export CFLAGS="%{optflags}"
%if 0%{?asan}