summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrun.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/run.in b/run.in
index 08ac1cc2..fcea0b16 100755
--- a/run.in
+++ b/run.in
@@ -37,6 +37,8 @@ b=@abs_builddir@
export TMPDIR="$b"
# Set local environment relative to this script.
+export LIBGUESTFS_PATH="$b/appliance"
+
library_path="$b/src/.libs:$b/gobject/.libs"
if [ -z "$LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH=$library_path
@@ -45,6 +47,7 @@ else
fi
export LD_LIBRARY_PATH
+# For Perl.
if [ -z "$PERL5LIB" ]; then
PERL5LIB="$b/perl/blib/lib:$b/perl/blib/arch"
else
@@ -52,6 +55,7 @@ else
fi
export PERL5LIB
+# For Python.
if [ -z "$PYTHONPATH" ]; then
PYTHONPATH="$b/python:$b/python/.libs"
else
@@ -59,6 +63,7 @@ else
fi
export PYTHONPATH
+# For GObject and friends.
if [ -z "$GI_TYPELIB_PATH" ]; then
GI_TYPELIB_PATH="$b/gobject"
else
@@ -66,8 +71,6 @@ else
fi
export GI_TYPELIB_PATH
-export LIBGUESTFS_PATH="$b/appliance"
-
# Do we have libtool? If we have it then we can use it to make
# running valgrind simpler. However don't depend on it.
if libtool --help >/dev/null 2>&1; then