diff options
Diffstat (limited to 'sci-chemistry/abinit/files/fix-blas-lapack-check.patch')
-rw-r--r-- | sci-chemistry/abinit/files/fix-blas-lapack-check.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sci-chemistry/abinit/files/fix-blas-lapack-check.patch b/sci-chemistry/abinit/files/fix-blas-lapack-check.patch new file mode 100644 index 0000000..92c20b9 --- /dev/null +++ b/sci-chemistry/abinit/files/fix-blas-lapack-check.patch @@ -0,0 +1,39 @@ +diff -urN abinit-5.0.1.orig/config/m4/extlibs.m4 abinit-5.0.1/config/m4/extlibs.m4 +--- abinit-5.0.1.orig/config/m4/extlibs.m4 2005-12-11 06:58:20.000000000 -0800 ++++ abinit-5.0.1/config/m4/extlibs.m4 2006-02-10 23:53:34.000000000 -0800 +@@ -52,7 +52,7 @@ + + dnl Look for library + blas_lib="${with_blas_prefix}/lib/libblas.a" +- blas_ldflags="-L${with_blas_prefix}/lib -lblas" ++ blas_ldflags="-L${with_blas_prefix}/lib -lblas -lpthread" + if test ! -s "${blas_lib}"; then + build_blas="yes" + fi +@@ -61,7 +61,7 @@ + + if test "${build_blas}" = "yes"; then + AC_MSG_NOTICE([the BLAS library will be built]) +- blas_ldflags="-L\$(top_builddir)/lib/blas -lblas" ++ blas_ldflags="-L\$(top_builddir)/lib/blas -lblas -lpthread" + blas_lib="\$(top_builddir)/lib/blas/libblas.a" + else + AC_MSG_NOTICE([the BLAS library will not be built]) +@@ -109,7 +109,7 @@ + + dnl Look for library + lapack_lib="${with_lapack_prefix}/lib/liblapack.a" +- lapack_ldflags="-L${with_lapack_prefix}/lib -llapack" ++ lapack_ldflags="-L${with_lapack_prefix}/lib -llapack -lpthread" + if test ! -s "${lapack_lib}"; then + build_lapack="yes" + fi +@@ -118,7 +118,7 @@ + + if test "${build_lapack}" = "yes"; then + AC_MSG_NOTICE([the LAPACK library will be built]) +- lapack_ldflags="-L\$(top_builddir)/lib/lapack -llapack" ++ lapack_ldflags="-L\$(top_builddir)/lib/lapack -llapack -lpthread" + lapack_lib="\$(top_builddir)/lib/lapack/liblapack.a" + else + AC_MSG_NOTICE([the LAPACK library will not be built]) |