]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Link with BLAS if using PETSc with static libs.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 May 2004 12:48:47 +0000 (12:48 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 May 2004 12:48:47 +0000 (12:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@9233 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 81b4885b419fe6a9db384fe48b2cc3459bda5c88..748d09fbfc67219a8c57636f42f827e680454a1d 100644 (file)
@@ -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
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.