Ana Guerrero 2024-06-19 14:36:36 +00:00 committed by Git OBS Bridge
commit bc97425007
3 changed files with 20 additions and 3 deletions

11
no-static.patch Normal file
View File

@ -0,0 +1,11 @@
Index: OpenBLAS-0.3.27/Makefile.riscv64
===================================================================
--- OpenBLAS-0.3.27.orig/Makefile.riscv64
+++ OpenBLAS-0.3.27/Makefile.riscv64
@@ -16,5 +16,5 @@ FCOMMON_OPT += -march=rv64imafdcv -mabi=
endif
ifeq ($(CORE), RISCV64_GENERIC)
CCOMMON_OPT += -march=rv64imafdc -mabi=lp64d
-FCOMMON_OPT += -march=rv64imafdc -mabi=lp64d -static
+FCOMMON_OPT += -march=rv64imafdc -mabi=lp64d
endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 13 07:32:23 UTC 2024 - Andreas Schwab <schwab@suse.de>
- no-static.patch: do not link statically
-------------------------------------------------------------------
Sun Jun 9 07:07:51 UTC 2024 - Egbert Eich <eich@suse.com>

View File

@ -1,5 +1,5 @@
#
# spec file
# spec file for package openblas
#
# Copyright (c) 2024 SUSE LLC
#
@ -228,6 +228,7 @@ Patch101: Link-library-with-z-noexecstack.patch
# PATCH port
Patch102: Handle-s390-correctly.patch
Patch103: openblas-ppc64be_up2_p8.patch
Patch104: no-static.patch
#BuildRequires: cmake
BuildRequires: memory-constraints
@ -238,7 +239,7 @@ BuildRequires: gcc%{?cc_v}-fortran
BuildRequires: gcc-fortran
BuildRequires: update-alternatives
Requires(post): update-alternatives
Requires(preun):update-alternatives
Requires(preun): update-alternatives
%else
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
BuildRequires: lua-lmod
@ -255,7 +256,7 @@ Group: System/Libraries
%if %{without hpc}
Requires(post): update-alternatives
Requires(post): coreutils
Requires(preun):update-alternatives
Requires(preun): update-alternatives
%if "%flavor" == "serial"
Obsoletes: lib%{pname}%{so_v} < %{version}
Provides: lib%{pname}%{so_v} = %{version}