- no-static.patch: do not link statically

OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=177
This commit is contained in:
Atri Bhattacharya 2024-06-19 03:35:07 +00:00 committed by Git OBS Bridge
parent f5d2341b57
commit b5d6abd000
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> 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 # Copyright (c) 2024 SUSE LLC
# #
@ -228,6 +228,7 @@ Patch101: Link-library-with-z-noexecstack.patch
# PATCH port # PATCH port
Patch102: Handle-s390-correctly.patch Patch102: Handle-s390-correctly.patch
Patch103: openblas-ppc64be_up2_p8.patch Patch103: openblas-ppc64be_up2_p8.patch
Patch104: no-static.patch
#BuildRequires: cmake #BuildRequires: cmake
BuildRequires: memory-constraints BuildRequires: memory-constraints
@ -238,7 +239,7 @@ BuildRequires: gcc%{?cc_v}-fortran
BuildRequires: gcc-fortran BuildRequires: gcc-fortran
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun):update-alternatives Requires(preun): update-alternatives
%else %else
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
BuildRequires: lua-lmod BuildRequires: lua-lmod
@ -255,7 +256,7 @@ Group: System/Libraries
%if %{without hpc} %if %{without hpc}
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(post): coreutils Requires(post): coreutils
Requires(preun):update-alternatives Requires(preun): update-alternatives
%if "%flavor" == "serial" %if "%flavor" == "serial"
Obsoletes: lib%{pname}%{so_v} < %{version} Obsoletes: lib%{pname}%{so_v} < %{version}
Provides: lib%{pname}%{so_v} = %{version} Provides: lib%{pname}%{so_v} = %{version}