From 1e25d9f845d4611e23c429b4695b0d54d4e97792 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 11 May 2004 12:48:47 +0000 Subject: [PATCH] Link with BLAS if using PETSc with static libs. git-svn-id: https://svn.dealii.org/trunk@9233 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5