diff options
author | Nikolai Merinov <n.merinov@samsung.com> | 2019-01-31 17:31:33 +0300 |
---|---|---|
committer | Nikolai Merinov <n.merinov@samsung.com> | 2019-01-31 17:31:39 +0300 |
commit | 81765143316b542fc8b11989ac2d08645dae977e (patch) | |
tree | f15d1343744c5cf941b82e85e4b71996b30641e5 | |
parent | 6740346308c0dceb89d397c3e1f568b926db1f96 (diff) | |
download | openblas-81765143316b542fc8b11989ac2d08645dae977e.tar.gz openblas-81765143316b542fc8b11989ac2d08645dae977e.tar.bz2 openblas-81765143316b542fc8b11989ac2d08645dae977e.zip |
Use system CC and install gcc-fortran dependencies
-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 .. |