diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/openblas.spec | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/packaging/openblas.spec b/packaging/openblas.spec index aca70a60e..a69e2fb29 100644 --- a/packaging/openblas.spec +++ b/packaging/openblas.spec @@ -7,7 +7,16 @@ Group: Productivity/Scientific/Math Url: http://www.openblas.net Source0: %{name}-%{version}.tar.gz Source1001: %{name}.manifest -BuildRequires: gcc-fortran +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-fortran libgfortran BuildRequires: update-alternatives BuildRequires: sed Requires(post): update-alternatives @@ -162,11 +171,11 @@ export EXTRALIB+="-lasan" cd .. # Make serial, threaded and OpenMP versions make -C serial %{?_smp_mflags} %{?openblas_target} USE_THREAD=0 USE_OPENMP=0 LIBNAMESUFFIX=serial \ - FC=gfortran CC=gcc COMMON_OPT="%{optflags}" NUM_THREADS=64 V=1 + FC=gfortran CC="${CC:-gcc}" COMMON_OPT="%{optflags}" NUM_THREADS=64 V=1 make -C openmp %{?_smp_mflags} %{?openblas_target} USE_THREAD=1 USE_OPENMP=1 LIBNAMESUFFIX=openmp \ - FC=gfortran CC=gcc COMMON_OPT="%{optflags}" NUM_THREADS=64 V=1 + FC=gfortran CC="${CC:-gcc}" COMMON_OPT="%{optflags}" NUM_THREADS=64 V=1 make -C pthreads %{?_smp_mflags} %{?openblas_target} USE_THREAD=1 USE_OPENMP=0 LIBNAMESUFFIX=pthreads \ - FC=gfortran CC=gcc COMMON_OPT="%{optflags}" NUM_THREADS=64 V=1 + FC=gfortran CC="${CC:-gcc}" COMMON_OPT="%{optflags}" NUM_THREADS=64 V=1 %install cd .. |