summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>2019-12-19 10:05:25 +0300
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>2019-12-20 22:58:23 +0300
commitebfba8b9d19c4de41df6ffa626f143bf6be70556 (patch)
treeb6fa54c9e0abff78a4ebec74afe73503103a77cd
parent572be316c51ca0939de5208508c24c204cb01a8f (diff)
downloadopenblas-ebfba8b9d19c4de41df6ffa626f143bf6be70556.tar.gz
openblas-ebfba8b9d19c4de41df6ffa626f143bf6be70556.tar.bz2
openblas-ebfba8b9d19c4de41df6ffa626f143bf6be70556.zip
[Tizen 6.0] Support build with GCC 9.2sandbox/mkashkarov/tizen_6.0_build
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
-rw-r--r--packaging/openblas.spec15
1 files changed, 12 insertions, 3 deletions
diff --git a/packaging/openblas.spec b/packaging/openblas.spec
index 093155671..ed6985b08 100644
--- a/packaging/openblas.spec
+++ b/packaging/openblas.spec
@@ -162,13 +162,22 @@ export LDFLAGS+="-Wl,-z,noexecstack"
%endif
cd ..
+
+# Just to avoid duplication, global flags are passed with COMMON_OPT
+export CFLAGS=""
+export CXXFLAGS=""
+export FFLAGS=""
+
+# Segv with -fno-omit-frame-pointer + optimizaions
+BUILD_FLAGS="%{optflags} -fomit-frame-pointer"
+
# 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=gcc COMMON_OPT="${BUILD_FLAGS}" 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=gcc COMMON_OPT="${BUILD_FLAGS}" 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=gcc COMMON_OPT="${BUILD_FLAGS}" NUM_THREADS=64 V=1
%install
cd ..