From: bangerth Date: Tue, 21 Aug 2012 17:02:09 +0000 (+0000) Subject: Encode the path to metis with -Wl,-rpath on the command line. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b011ad79c81318b59255fc0cd37f98ea18af732;p=dealii-svn.git Encode the path to metis with -Wl,-rpath on the command line. git-svn-id: https://svn.dealii.org/trunk@26057 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index a78957289b..09c818061f 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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) diff --git a/deal.II/configure b/deal.II/configure index ecf2f81993..3209a97103 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -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