Skip to content

Commit

Permalink
update noexecstack patch for v0.2.20 (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
crbaird committed Aug 1, 2017
1 parent 8d40980 commit acd0d52
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions components/serial-libs/openblas/SOURCES/openblas-noexecstack.patch
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
Index: OpenBLAS-0.2.13/exports/Makefile
===================================================================
--- OpenBLAS-0.2.13.orig/exports/Makefile
+++ OpenBLAS-0.2.13/exports/Makefile
@@ -118,6 +118,7 @@ else
--- OpenBLAS-0.2.20/exports/Makefile 2017-07-23 21:03:35.000000000 -0700
+++ OpenBLAS-0.2.20.patch/exports/Makefile 2017-08-01 13:17:26.000000000 -0700
@@ -137,6 +137,7 @@
endif
ifneq ($(C_COMPILER), LSB)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,-z,noexecstack \
+ -Wl,-z,noexecstack \
-Wl,--whole-archive $< -Wl,--no-whole-archive \
-Wl,-soname,$(LIBPREFIX).so.$(MAJOR_VERSION) $(EXTRALIB)
-Wl,-soname,$(INTERNALNAME) $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
@@ -145,6 +146,7 @@ else
@@ -164,6 +165,7 @@
../$(LIBSONAME) : ../$(LIBNAME).renamed linktest.c
endif
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,-z,noexecstack \
+ -Wl,-z,noexecstack \
-Wl,--whole-archive $< -Wl,--no-whole-archive \
$(FEXTRALIB) $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
@@ -164,6 +166,7 @@ ifeq ($(OSNAME), SunOS)
@@ -183,6 +185,7 @@

so : ../$(LIBSONAME)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,-z,noexecstack \
+ -Wl,-z,noexecstack \
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
rm -f linktest

0 comments on commit acd0d52

Please sign in to comment.