summaryrefslogtreecommitdiffstats
path: root/run.in
diff options
context:
space:
mode:
Diffstat (limited to 'run.in')
-rw-r--r--run.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/run.in b/run.in
index 1c532bea..c73777be 100644
--- a/run.in
+++ b/run.in
@@ -45,6 +45,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
@@ -53,6 +55,7 @@ else
fi
export LD_LIBRARY_PATH
+# For Perl.
if [ -z "$PERL5LIB" ]; then
PERL5LIB="$b/perl/blib/lib:$b/perl/blib/arch"
else
@@ -60,6 +63,7 @@ else
fi
export PERL5LIB
+# For Python.
if [ -z "$PYTHONPATH" ]; then
PYTHONPATH="$b/python:$b/python/.libs"
else
@@ -67,6 +71,7 @@ else
fi
export PYTHONPATH
+# For GObject and friends.
if [ -z "$GI_TYPELIB_PATH" ]; then
GI_TYPELIB_PATH="$b/gobject"
else
@@ -74,8 +79,6 @@ else
fi
export GI_TYPELIB_PATH
-export LIBGUESTFS_PATH="$b/appliance"
-
# This is a cheap way to find some use-after-free and uninitialized
# read problems when using glibc.
random_val="$(awk 'BEGIN{srand(); print 1+int(255*rand())}' < /dev/null)"