From b5d6abd0002fd7f787914f9d422987a96375455a921b38a789ba81685ea54aed Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Wed, 19 Jun 2024 03:35:07 +0000 Subject: [PATCH] - no-static.patch: do not link statically OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=177 --- no-static.patch | 11 +++++++++++ openblas.changes | 5 +++++ openblas.spec | 7 ++++--- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 no-static.patch diff --git a/no-static.patch b/no-static.patch new file mode 100644 index 0000000..329842a --- /dev/null +++ b/no-static.patch @@ -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 diff --git a/openblas.changes b/openblas.changes index 5524c62..464516b 100644 --- a/openblas.changes +++ b/openblas.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 13 07:32:23 UTC 2024 - Andreas Schwab + +- no-static.patch: do not link statically + ------------------------------------------------------------------- Sun Jun 9 07:07:51 UTC 2024 - Egbert Eich diff --git a/openblas.spec b/openblas.spec index 2d540db..fba0f4b 100644 --- a/openblas.spec +++ b/openblas.spec @@ -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}