From 54e3865c62cb9a5fe30c641a5d49d4f700f81d52 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Mon, 8 Aug 2005 18:01:44 +0000 Subject: [PATCH] Minor fix -- ensure to use the installed $libdir, not anything that may already be in the LD_LIBRARY_PATH. This commit was SVN r6765. --- contrib/nightly/build_tarball.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/nightly/build_tarball.pl b/contrib/nightly/build_tarball.pl index 76a687bc4f..e20d8724f5 100755 --- a/contrib/nightly/build_tarball.pl +++ b/contrib/nightly/build_tarball.pl @@ -437,6 +437,14 @@ sub try_build { } } + # Ensure LD_LIBRARY_PATH points to our shared libraries + + if (exists($ENV{LD_LIBRARY_PATH})) { + $ENV{LD_LIBRARY_PATH} = "$installdir/lib:" . $ENV{LD_LIBRARY_PATH}; + } else { + $ENV{LD_LIBRARY_PATH}; + } + # install it $ret = do_command(1, "make install"); if ($ret->{status} != 0) {