]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (shlibpath_var): ensure the variable is non-empty before
authorAlbert Cheng <acheng@ncsa.uiuc.edu>
Tue, 28 Sep 1999 08:37:46 +0000 (08:37 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 28 Sep 1999 08:37:46 +0000 (08:37 +0000)
exporting it.

ChangeLog
ltmain.in

index 99e1f98faa50683a0a857ea049b6379876c48f49..b71f8accd38c4ab19f070e3b584161a6ea85ee43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index b617956ede4480f7168c7abb78583d9317b65407..75e698c46de0fdc9ac1c9883844419a17e2b4a8b 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -3677,8 +3677,10 @@ libdir='$install_libdir'\
     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
@@ -3694,9 +3696,11 @@ libdir='$install_libdir'\
       $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