aboutsummaryrefslogtreecommitdiff
blob: 92c20b9988c16b3ad4cc92add7f6eb9ae5113a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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])