openblas/Link-library-with-z-noexecstack.patch
Atri Bhattacharya 3ba6a4aff8 Accepting request 1129726 from home:badshah400:branches:science
Note: Please allow to build in science and check what it breaks before forwarding to Factory. Thanks in advance.

Changes:
* Update to version 0.3.25.
* Minor rebase of openblas-ppc64be_up2_p8.patch to apply cleanly.
* Drop upstreamed patches: Use-blasint-for-INTERFACE64-compatibility.patch, remove-spurious-loops.patch

OBS-URL: https://build.opensuse.org/request/show/1129726
OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=164
2023-12-08 10:59:32 +00:00

25 lines
892 B
Diff

From: Egbert Eich <eich@suse.com>
Date: Wed Nov 30 20:16:21 2022 +0100
Subject: Link library with -z,noexecstack
Patch-mainline: Not yet
Git-commit: adddc0eadc81bcd29c48594793cb33eac0edb572
References:
Signed-off-by: Egbert Eich <eich@suse.com>
Signed-off-by: Egbert Eich <eich@suse.de>
---
exports/Makefile | 1 +
1 file changed, 1 insertion(+)
Index: OpenBLAS-0.3.25/exports/Makefile
===================================================================
--- OpenBLAS-0.3.25.orig/exports/Makefile
+++ OpenBLAS-0.3.25/exports/Makefile
@@ -193,6 +193,7 @@ else ifeq ($(F_COMPILER), FLANG)
else
ifneq ($(C_COMPILER), LSB)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,-z,noexecstack \
-Wl,--whole-archive $< -Wl,--no-whole-archive \
-Wl,-soname,$(INTERNALNAME) $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.