diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-04-16 15:29:58 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-04-16 15:29:58 +0100 |
commit | 5d139fa8a4a7f9ff65e7b936fd7376f661c72f48 (patch) | |
tree | f65bd8d612b0f7be9a316ffbf750315f76c91915 | |
parent | 79f5720d2ccab820c90b7516f3fbf5e3dcbe9c8f (diff) | |
download | libguestfs-5d139fa8a4a7f9ff65e7b936fd7376f661c72f48.tar.gz libguestfs-5d139fa8a4a7f9ff65e7b936fd7376f661c72f48.tar.xz libguestfs-5d139fa8a4a7f9ff65e7b936fd7376f661c72f48.zip |
run script: Don't depend on libtool being installed.
Also use 'exec' to run the program.
-rwxr-xr-x | run | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -38,5 +38,11 @@ export LD_LIBRARY_PATH="$b/src/.libs" export LIBGUESTFS_PATH="$b/appliance" export PERL5LIB="$b/perl/blib/lib:$b/perl/blib/arch" +# 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 + libtool="libtool --mode=execute" +fi + # Run the program. -libtool --mode=execute "$@" +exec $libtool "$@" |