From 920ed4d652afb2e6d2389b268c44ecf5c73eb280 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 7 Jul 2008 16:47:09 +0000 Subject: [PATCH] Set path to trilinos if using shared libs. git-svn-id: https://svn.dealii.org/trunk@16424 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 6 ++++++ deal.II/configure | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 3a4a76db41..a475bdff56 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -5386,6 +5386,12 @@ AC_DEFUN(DEAL_II_CHECK_TRILINOS_SHARED_STATIC, dnl AC_MSG_ERROR([When building deal.II with shared libraries, Trilinos also needs to be built with shared libraries]) fi + + dnl If we use shared libs (and we've made sure above that Trilinos provides + dnl these as well), then set some of the LD_FLAGS and similar + if test "x$enableshared" = "xyes" ; then + LDFLAGS="$LDFLAGS -L$DEAL_II_TRILINOS_DIR/lib -Wl,-rpath,$DEAL_II_TRILINOS_DIR/lib" + fi ]) diff --git a/deal.II/configure b/deal.II/configure index db255a6867..82fc0813d8 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -13336,6 +13336,10 @@ echo "$as_me: error: When building deal.II with shared libraries, Trilinos also { (exit 1); exit 1; }; } fi + if test "x$enableshared" = "xyes" ; then + LDFLAGS="$LDFLAGS -L$DEAL_II_TRILINOS_DIR/lib -Wl,-rpath,$DEAL_II_TRILINOS_DIR/lib" + fi + if test "x$with_trilinos" = "x" ; then with_trilinos="yes" -- 2.39.5