lapack-3.9.0-lapacke-shared.patch 1.1 KB

12345678910111213141516171819202122
  1. diff -up lapack-3.9.0/INSTALL/make.inc.gfortran.shared lapack-3.9.0/INSTALL/make.inc.gfortran
  2. --- lapack-3.9.0/INSTALL/make.inc.gfortran.shared 2019-11-26 09:19:38.689118934 -0500
  3. +++ lapack-3.9.0/INSTALL/make.inc.gfortran 2019-11-26 09:20:52.442628214 -0500
  4. @@ -81,3 +81,4 @@ CBLASLIB = $(TOPSRCDIR)/libcblas.a
  5. LAPACKLIB = $(TOPSRCDIR)/liblapack.a
  6. TMGLIB = $(TOPSRCDIR)/libtmglib.a
  7. LAPACKELIB = $(TOPSRCDIR)/liblapacke.a
  8. +SHLIB_LAPACKE = $(TOPSRCDIR)/liblapacke.so
  9. diff -up lapack-3.9.0/LAPACKE/Makefile.shared lapack-3.9.0/LAPACKE/Makefile
  10. --- lapack-3.9.0/LAPACKE/Makefile.shared 2019-11-26 09:19:38.689118934 -0500
  11. +++ lapack-3.9.0/LAPACKE/Makefile 2019-11-26 09:21:59.977268139 -0500
  12. @@ -54,6 +54,9 @@ lapacke: include/lapacke_mangling.h
  13. include/lapacke_mangling.h: include/lapacke_mangling_with_flags.h.in
  14. cp include/lapacke_mangling_with_flags.h.in $@
  15. +shlib: lapacke
  16. + $(CC) $(CFLAGS) -shared -Wl,-soname,liblapacke.so.@SHORTVER@ -o $(SHLIB_LAPACKE).@LONGVER@ src/*.o utils/*.o $(LDFLAGS) $(LIBS) -lgfortran -lc -L.. -llapack
  17. +
  18. .PHONY: lapacke_example
  19. lapacke_example: lapacke
  20. $(MAKE) -C example