openblas/openblas-noexecstack.patch
Ismail Dönmez 4f9678748e - Update to version 0.3.14
common:
  * Fixed a race condition on thread shutdown in non-OpenMP builds
  * Fixed custom BUFFERSIZE option getting ignored in gmake builds
  * Fixed CMAKE compilation of the TRMM kernels for GENERIC platforms
  * Added CBLAS interfaces for CROTG, ZROTG, CSROT and ZDROT
  * Improved performance of OMATCOPY_RT across all platforms
  * Changed perl scripts to use env instead of a hardcoded /usr/bin/perl
  * Fixed potential misreading of the GCC compiler version in the build scripts
  * Fixed convergence problems in LAPACK complex GGEV/GGES (Reference-LAPACK #477)
  * Reduced the stacksize requirements for running the LAPACK testsuite (Reference-LAPACK #335)
  RISC V:
  * Fixed compilation on RISCV (missing entry in getarch)
  POWER:
  * Fixed compilation for DYNAMIC_ARCH with clang and with older gcc versions
  * Added support for compilation on FreeBSD/ppc64le
  * Added optimized POWER10 kernels for SSCAL, DSCAL, CSCAL, ZSCAL
  * Added optimized POWER10 kernels for SROT, DROT, CDOT, SASUM, DASUM
  * Improved SSWAP, DSWAP, CSWAP, ZSWAP performance on POWER10
  * Improved SCOPY and CCOPY performance on POWER10
  * Improved SGEMM and DGEMM performance on POWER10
  * Added support for compilation with the NVIDIA HPC compiler
  x86_64:
  * Added an optimized bfloat16 GEMM kernel for Cooperlake
  * Added CPUID autodetection for Intel Rocket Lake and Tiger Lake cpus
  * Improved the performance of SASUM,DASUM,SROT,DROT on AMD Ryzen cpus
  * Added support for compilation with the NAG Fortran compiler
  * Fixed recognition of the AMD AOCC compiler
  * Fixed compilation for DYNAMIC_ARCH with clang on Windows
  * Added support for running the BLAS/CBLAS tests on Windows

OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=120
2021-03-18 08:47:05 +00:00

29 lines
1.2 KiB
Diff

Index: OpenBLAS-0.3.14/exports/Makefile
===================================================================
--- OpenBLAS-0.3.14.orig/exports/Makefile
+++ OpenBLAS-0.3.14/exports/Makefile
@@ -179,6 +179,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.
@@ -207,6 +208,7 @@ else
../$(LIBSONAME) : ../$(LIBNAME).renamed linktest.c
endif
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,-z,noexecstack \
-Wl,--whole-archive $< -Wl,--no-whole-archive \
$(FEXTRALIB) $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
@@ -226,6 +228,7 @@ ifeq ($(OSNAME), SunOS)
so : ../$(LIBSONAME)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -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