Skip to content
Snippets Groups Projects
Commit d7666dab authored by Danny Auble's avatar Danny Auble
Browse files

Added an rpath if using the --with-munge option of configure.

parent 1fb586c5
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ AC_DEFUN([X_AC_MUNGE], [
test -f "$d/include/munge.h" || continue
for bit in $_x_ac_munge_libs; do
test -d "$d/$bit" || continue
_x_ac_munge_libs_save="$LIBS"
LIBS="-L$d/$bit -lmunge $LIBS"
AC_LINK_IFELSE(
......@@ -54,7 +54,7 @@ AC_DEFUN([X_AC_MUNGE], [
else
MUNGE_LIBS="-lmunge"
MUNGE_CPPFLAGS="-I$x_ac_cv_munge_dir/include"
MUNGE_LDFLAGS="-L$x_ac_cv_munge_dir/$bit"
MUNGE_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_munge_dir/$bit -L$x_ac_cv_munge_dir/$bit"
fi
AC_SUBST(MUNGE_LIBS)
......
......@@ -21072,7 +21072,7 @@ $as_echo "$as_me: WARNING: unable to locate munge installation" >&2;}
else
MUNGE_LIBS="-lmunge"
MUNGE_CPPFLAGS="-I$x_ac_cv_munge_dir/include"
MUNGE_LDFLAGS="-L$x_ac_cv_munge_dir/$bit"
MUNGE_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_munge_dir/$bit -L$x_ac_cv_munge_dir/$bit"
fi
 
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment