summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2020-01-17 15:24:52 +0900
committerInki Dae <inki.dae@samsung.com>2020-01-17 15:26:41 +0900
commitaa6b7cb56c82d45a3d7d31b8297c64ac6056b5f6 (patch)
tree2a7ec3ae7d78e675e9f5dc1c9a46f3f8ff700934
parent15c0f76ff281e84bedd186fcb7f10739e0ff175b (diff)
downloadopenblas-aa6b7cb56c82d45a3d7d31b8297c64ac6056b5f6.tar.gz
openblas-aa6b7cb56c82d45a3d7d31b8297c64ac6056b5f6.tar.bz2
openblas-aa6b7cb56c82d45a3d7d31b8297c64ac6056b5f6.zip
Revert "Fix build error due to toolchain upgrade(gcc6->gcc9)"
This reverts commit 15c0f76ff281e84bedd186fcb7f10739e0ff175b. Change-Id: Ied000e23c9ac19bf508310925bc91c422d9ffdc8 Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--packaging/openblas.spec20
1 files changed, 4 insertions, 16 deletions
diff --git a/packaging/openblas.spec b/packaging/openblas.spec
index bc434ae8f..093155671 100644
--- a/packaging/openblas.spec
+++ b/packaging/openblas.spec
@@ -1,6 +1,6 @@
Name: openblas
Version: 0.2.20
-Release: 2
+Release: 1
Summary: An optimized BLAS library based on GotoBLAS2
License: BSD-3-Clause and MIT and Apache-2.0
Group: Productivity/Scientific/Math
@@ -162,25 +162,13 @@ export LDFLAGS+="-Wl,-z,noexecstack"
%endif
cd ..
-
-# Just to avoid duplication, global flags are passed with COMMON_OPT
-export CFLAGS=""
-export CXXFLAGS=""
-export FFLAGS=""
-
-BUILD_FLAGS="%{optflags}"
-%ifarch x86_64
-# On GCC9, the "-fno-omit-frame-pointer" option results in the segfault in case of x86_64.
-BUILD_FLAGS=$(echo $BUILD_FLAGS| sed 's/-fno-omit-frame-pointer/-fomit-frame-pointer/g')
-%endif
-
# 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="${BUILD_FLAGS}" NUM_THREADS=64 V=1
+ FC=gfortran 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="${BUILD_FLAGS}" NUM_THREADS=64 V=1
+ FC=gfortran 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="${BUILD_FLAGS}" NUM_THREADS=64 V=1
+ FC=gfortran CC=gcc COMMON_OPT="%{optflags}" NUM_THREADS=64 V=1
%install
cd ..