]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Do not change the PATH in the wrappers: let them
authorAkim Demaille <akim@epita.fr>
Mon, 18 Nov 2002 16:40:59 +0000 (16:40 +0000)
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Mon, 18 Nov 2002 16:40:59 +0000 (16:40 +0000)
launch the real binary using its path.

ChangeLog
ltmain.in

index 6fd9111c02ba3d2dd58985542799d41ab56f0a52..fe2735966e3a7fb48375e2a69e996271ae9927d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-18  Akim Demaille  <akim@epita.fr>
+
+       * ltmain.in: Do not change the PATH in the wrappers: let them
+       launch the real binary using its path.
+
 2002-11-18  Kevin Ryde  <user42@zip.com.au>
 
        * doc/libtool.texi (Library tips): Note array dimensions.
index cd2fbbf18be6b6f5d3615ffc1be18b8ba90b6876..1d39321334c12b819e23da4851315bc70e6922e5 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -4395,14 +4395,6 @@ else
       # Run the actual program with our arguments.
 "
        case $host in
-       # win32 systems need to use the prog path for dll
-       # lookup to work
-       *-*-cygwin* | *-*-pw32*)
-         $echo >> $output "\
-      exec \$progdir/\$program \${1+\"\$@\"}
-"
-         ;;
-
        # Backslashes separate directories on plain windows
        *-*-mingw | *-*-os2*)
          $echo >> $output "\
@@ -4412,11 +4404,7 @@ else
 
        *)
          $echo >> $output "\
-      # Export the path to the program.
-      PATH=\"\$progdir:\$PATH\"
-      export PATH
-
-      exec \$program \${1+\"\$@\"}
+      exec \$progdir/\$program \${1+\"\$@\"}
 "
          ;;
        esac