openblas/openblas-noexecstack.patch
Ismail Dönmez c7de4a75a6 - Update to version 0.3.11
common:
  * Reduced the default BLAS3_MEM_ALLOC_THRESHOLD (used as an upper
    limit for placing temporary arrays on the stack) to be compatible
    with a stack size of 1mb (as imposed by the JAVA runtime library)
  * Added mixed-precision dot function SBDOT and utility functions
    shstobf16, shdtobf16, sbf16tos and dbf16tod to convert between
    single or double precision float arrays and bfloat16 arrays
  * Fixed prototypes of LAPACK_?ggsvp and LAPACK_?ggsvd functions
    in lapack.h
  * Fixed underflow and rounding errors in LAPACK SLANV2 and DLANV2
    (causing miscalculations in e.g. SHSEQR/DHSEQR, LAPACK issue #263)
  * Fixed workspace calculation in LAPACK ?GELQ (LAPACK issue #415)
  * Fixed several bugs in the LAPACK testsuite
  * Improved performance of TRMM and TRSM for certain problem sizes
  * Fixed infinite recursions and workspace miscalculations in ReLAPACK
  * CMAKE builds no longer require pkg-config for creating the .pc file
  * Makefile builds no longer misread NO_CBLAS=0 or NO_LAPACK=0 as
    enabling these options
  * Fixed detection of gfortran when invoked through an mpi wrapper
  * Improve thread reinitialization performance with OpenMP after a fork
  * Added support for building only the subset of the library required
    for a particular precision by specifying BUILD_SINGLE, BUILD_DOUBLE
  * Optional function name prefixes and suffixes are now correctly
    reflected in the generated cblas.h
  * Added CMAKE build support for the LAPACK and multithreading tests
  power:
  * Added optimized support for POWER10
  * Added support for compiling for POWER8 in 32bit mode
  * Added support for compilation with LLVM/clang

OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=102
2020-10-21 05:48:02 +00:00

29 lines
1.2 KiB
Diff

Index: OpenBLAS-0.3.11/exports/Makefile
===================================================================
--- OpenBLAS-0.3.11.orig/exports/Makefile
+++ OpenBLAS-0.3.11/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