From: wolf Date: Tue, 11 May 2004 12:48:47 +0000 (+0000) Subject: Link with BLAS if using PETSc with static libs. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e25d9f845d4611e23c429b4695b0d54d4e97792;p=dealii-svn.git Link with BLAS if using PETSc with static libs. git-svn-id: https://svn.dealii.org/trunk@9233 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 81b4885b41..748d09fbfc 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -3779,6 +3779,14 @@ AC_DEFUN(DEAL_II_CONFIGURE_PETSC, dnl dnl defining the string "DEAL_II_USE_PETSC" for the preprocessor. If dnl we don't have no PETSc, then it does not define this string. DEAL_II_DEFINE_DEAL_II_USE_PETSC=DEAL_II_USE_PETSC + + dnl If we are linking with static libraries, then we will have to add + dnl BLAS to the linker line for PETSc. Note that this is not necessary + dnl for shared libs, since they should already come with this reference + dnl built in. + if test "x$enableshared" = "xno" ; then + LDFLAGS="$LDFLAGS -lblas" + fi fi