summaryrefslogtreecommitdiffstats
path: root/bin/ltmain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ltmain.sh')
-rw-r--r--bin/ltmain.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ltmain.sh b/bin/ltmain.sh
index e9350b3..414c582 100644
--- a/bin/ltmain.sh
+++ b/bin/ltmain.sh
@@ -2172,7 +2172,9 @@ libdir='$install_libdir'\
if test -z "$run"; then
# Export the shlibpath_var.
- eval "export $shlibpath_var"
+ if test -n "$shlibpath_var"; then
+ eval "export $shlibpath_var"
+ fi
# Now actually exec the command.
eval "exec \$cmd$args"