]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Encode the path to metis with -Wl,-rpath on the command line.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Aug 2012 17:02:09 +0000 (17:02 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Aug 2012 17:02:09 +0000 (17:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@26057 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index a78957289b4295c57968ef46eea20b4fb1303163..09c818061f955faabdcd8e833b7f2121bf395965 100644 (file)
@@ -7245,6 +7245,10 @@ AC_DEFUN(DEAL_II_CONFIGURE_METIS, dnl
                to be used])
     LDFLAGS="$LDFLAGS -L$DEAL_II_METIS_LIBDIR -lmetis"
 
+    if test "x$DEAL_II_LD_UNDERSTANDS_RPATH" = "xyes" ; then
+      LDFLAGS="$LDFLAGS $LD_PATH_OPTION$DEAL_II_METIS_LIBDIR"
+    end
+
     dnl AC_MSG_CHECKING(for Metis version)
     dnl DEAL_II_METIS_VERSION=`cat $DEAL_II_METIS_DIR/VERSION`
     dnl AC_MSG_RESULT($DEAL_II_METIS_VERSION)
index ecf2f81993213104edbf31f9a815ee6fe396df7c..3209a97103bdbaf018477c27880b000c2f61317e 100755 (executable)
@@ -12726,6 +12726,10 @@ $as_echo "#define DEAL_II_USE_METIS 1" >>confdefs.h
 
     LDFLAGS="$LDFLAGS -L$DEAL_II_METIS_LIBDIR -lmetis"
 
+    if test "x$DEAL_II_LD_UNDERSTANDS_RPATH" = "xyes" ; then
+      LDFLAGS="$LDFLAGS $LD_PATH_OPTION$DEAL_II_METIS_LIBDIR"
+    end
+
               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.