lapack-sharedlib.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. diff -Nuar lapack-3.2.1.orig/BLAS/SRC/Makefile lapack-3.2.1/BLAS/SRC/Makefile
  2. --- lapack-3.2.1.orig/BLAS/SRC/Makefile 2010-08-16 13:40:39.106209859 +0300
  3. +++ lapack-3.2.1/BLAS/SRC/Makefile 2010-08-16 13:46:46.288212746 +0300
  4. @@ -163,6 +163,12 @@
  5. FRC:
  6. @FRC=$(FRC)
  7. +shared:
  8. + rm -f *.o
  9. + ar x ../../blas_LINUX.a
  10. + $(CC) $(CFLAGS) -fPIC $(LDFLAGS) *.o -lgfortran -lc -lm -shared -Wl,-soname,libblas.so.3 -o libblas.so.3.2.1
  11. + ln -s libblas.so.3.2.1 libblas.so.3
  12. + ln -s libblas.so.3.2.1 libblas.so
  13. clean:
  14. rm -f *.o
  15. diff -Nuar lapack-3.2.1.orig/Makefile lapack-3.2.1/Makefile
  16. --- lapack-3.2.1.orig/Makefile 2010-08-16 13:40:39.130213129 +0300
  17. +++ lapack-3.2.1/Makefile 2010-08-16 13:44:58.463216507 +0300
  18. @@ -8,8 +8,7 @@
  19. all: lapack_install lib lapack_testing blas_testing
  20. -lib: lapacklib tmglib
  21. -#lib: blaslib variants lapacklib tmglib
  22. +lib: blaslib variants lapacklib tmglib
  23. clean: cleanlib cleantesting cleanblas_testing
  24. @@ -18,10 +17,10 @@
  25. ./testdlamch; ./testsecond; ./testdsecnd; ./testversion )
  26. blaslib:
  27. - ( cd BLAS/SRC; $(MAKE) )
  28. + ( cd BLAS/SRC; $(MAKE); $(MAKE) shared )
  29. lapacklib: lapack_install
  30. - ( cd SRC; $(MAKE) )
  31. + ( cd SRC; $(MAKE); $(MAKE) shared )
  32. variants:
  33. ( cd SRC/VARIANTS ; $(MAKE))
  34. diff -Nuar lapack-3.2.1.orig/SRC/Makefile lapack-3.2.1/SRC/Makefile
  35. --- lapack-3.2.1.orig/SRC/Makefile 2010-08-16 13:40:39.165210958 +0300
  36. +++ lapack-3.2.1/SRC/Makefile 2010-08-16 13:53:41.417213085 +0300
  37. @@ -408,6 +408,13 @@
  38. FRC:
  39. @FRC=$(FRC)
  40. +shared:
  41. + rm -rf *.o
  42. + ar x ../lapack_LINUX.a
  43. + $(CC) $(CFLAGS) -fPIC $(LDFLAGS) *.o -L../BLAS/SRC -lblas -lgfortran -lc -lm -shared -Wl,-soname,liblapack.so.3 -o liblapack.so.3.2.1
  44. + ln -s liblapack.so.3.2.1 liblapack.so.3
  45. + ln -s liblapack.so.3.2.1 liblapack.so
  46. +
  47. clean:
  48. rm -f *.o