Skip to content

Commit 662a6c3

Browse files
committed
Add rpath flags to link line for Trilinos.
1 parent 0aeb519 commit 662a6c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

m4/trilinos.m4

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ AC_DEFUN([CONFIGURE_TRILINOS_10],
219219
rm -f Makefile_config_trilinos
220220
fi
221221
222+
dnl Add an rpath for $withtrilinosdir/lib to the link line. You don't
223+
dnl need this if Trilinos is built with static libs or if you can rely
224+
dnl on {DYLD,LD}_LIBRARY_PATH, but we don't want to assume either.
225+
if (test "x$RPATHFLAG" != "x" -a -d ${withtrilinosdir}/lib); then
226+
TRILINOS_LIBS="${RPATHFLAG}${withtrilinosdir}/lib $TRILINOS_LIBS"
227+
fi
228+
222229
AC_SUBST(TRILINOS_LIBS)
223230
AC_SUBST(TRILINOS_INCLUDES)
224231
])

0 commit comments

Comments
 (0)