From ccf3d45cff90f9450e98a49b7327a07d31d3e927 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Tue, 29 Dec 2015 10:51:35 -0800 Subject: [PATCH] prov/gni:configury, add rpath for criterion Add an rpath for criterion now that its using shared libs. Signed-off-by: Howard Pritchard --- prov/gni/configure.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prov/gni/configure.m4 b/prov/gni/configure.m4 index 47e03c5fd0a..00cbc2d4c10 100644 --- a/prov/gni/configure.m4 +++ b/prov/gni/configure.m4 @@ -63,10 +63,10 @@ AC_DEFUN([FI_GNI_CONFIGURE],[ AC_MSG_RESULT([yes]) gni_CPPFLAGS="-I$with_criterion/include $gni_CPPFLAGS" if test -d "$with_criterion/lib"; then - gni_LDFLAGS="$CRAY_ALPS_LLI_STATIC_LIBS -L$with_criterion/lib $gni_LDFLAGS" + gni_LDFLAGS="$CRAY_ALPS_LLI_STATIC_LIBS -L$with_criterion/lib -Wl,-rpath=$with_criterion/lib $gni_LDFLAGS" have_criterion=true elif test -d "$with_criterion/lib64"; then - gni_LDFLAGS="$CRAY_ALPS_LLI_STATIC_LIBS -L$with_criterion/lib64 $gni_LDFLAGS" + gni_LDFLAGS="$CRAY_ALPS_LLI_STATIC_LIBS -L$with_criterion/lib64 -Wl,-rpath=$with_criterion/lib64 $gni_LDFLAGS" have_criterion=true else have_criterion=false