+1999-09-28 Albert Cheng <acheng@ncsa.uiuc.edu>
+
+ * ltmain.in (shlibpath_var): ensure the variable is non-empty before
+ exporting it.
+
1999-09-22 Gary V. Vaughan <gary@oranda.demon.co.uk>
* ltconfig.in (whole-archive-flag-spec): test whether the
done
if test -z "$run"; then
- # Export the shlibpath_var.
- eval "export $shlibpath_var"
+ if test -n "$shlibpath_var"; then
+ # Export the shlibpath_var.
+ eval "export $shlibpath_var"
+ fi
# Restore saved enviroment variables
if test "${save_LC_ALL+set}" = set; then
$echo "$modename: cannot exec \$cmd$args"
exit 1
else
- # Display what would be done.
- eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
- $echo "export $shlibpath_var"
+ if test -n "$shlibpath_var"; then
+ # Display what would be done.
+ eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
+ $echo "export $shlibpath_var"
+ fi
$echo "$cmd$args"
exit 0
fi