SHA256
1
0
forked from pool/openblas
Files
openblas/Link-library-with-z-noexecstack.patch
Egbert Eich 3b559d14da Accepting request 1190198 from home:eeich:branches:science
- Make sure the minimum requirement mentioned in the pkgconfig
  file is the same one as used for building. This also helps
  to maintain a reproducible build (boo#1228177).

OBS-URL: https://build.opensuse.org/request/show/1190198
OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=179
2024-07-29 10:00:24 +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.