Try to fix ftbfs as instructed by upstream

This commit is contained in:
Susi Lehtola 2020-10-19 16:12:22 +02:00
parent 6b5c3faa04
commit 7d66ff068d
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -up OpenBLAS-0.3.11/Makefile.power.override OpenBLAS-0.3.11/Makefile.power
--- OpenBLAS-0.3.11/Makefile.power.override 2020-10-17 22:14:12.000000000 +0200
+++ OpenBLAS-0.3.11/Makefile.power 2020-10-19 16:12:10.351740456 +0200
@@ -10,7 +10,7 @@ USE_OPENMP = 1
endif
ifeq ($(CORE), POWER10)
-COMMON_OPT += -Ofast -mcpu=power10 -mtune=power10 -mvsx -fno-fast-math
+override COMMON_OPT += -Ofast -mcpu=power10 -mtune=power10 -mvsx -fno-fast-math
FCOMMON_OPT += -O2 -frecursive -mcpu=power10 -mtune=power10 -fno-fast-math
endif

View File

@ -29,6 +29,9 @@ Patch2: openblas-0.2.15-constructor.patch
# Supply the proper flags to the test makefile
Patch3: openblas-0.3.11-tests.patch
# Fix compile on power10
Patch4: openblas-0.3.11-override.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gcc-gfortran
@ -240,6 +243,7 @@ cd OpenBLAS-%{version}
%patch2 -p1 -b .constructor
%endif
%patch3 -p1 -b .tests
%patch4 -p1 -b .override
# Fix source permissions
find -name \*.f -exec chmod 644 {} \;