Try to fix ftbfs as instructed by upstream
This commit is contained in:
parent
6b5c3faa04
commit
7d66ff068d
12
openblas-0.3.11-power10.patch
Normal file
12
openblas-0.3.11-power10.patch
Normal 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
|
||||
|
@ -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 {} \;
|
||||
|
Loading…
Reference in New Issue
Block a user