libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing PATH in the wrappers


From: Akim Demaille
Subject: Changing PATH in the wrappers
Date: 06 Nov 2002 11:06:16 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

I sent a couple of days ago a bug report.  Here is the patch I'm
suggesting.  I'm also asking for writing permission on Libtool CVS, so
that I can apply my patches.  Of course, I will wait for approvals.  I
also plan to improve Autoconf 2.55 compatibility.

Please, install this patch, as without it GNU M4 fails to distcheck.

(I have failures, but they are Fortran related.  I'll have a look at it).

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * ltmain.in: Do not change the PATH in the wrappers: let them
        launch the real binary using its path.

Index: ltmain.in
===================================================================
RCS file: /cvs/libtool/ltmain.in,v
retrieving revision 1.310
diff -u -u -r1.310 ltmain.in
--- ltmain.in 3 Nov 2002 17:35:36 -0000 1.310
+++ ltmain.in 6 Nov 2002 09:56:03 -0000
@@ -119,7 +119,7 @@
 # This seems to be the best place for them

 # Need a lot of goo to handle *both* DLLs and import libs
-# Has to be a shell function in order to 'eat' the argument
+# Has to be a shell function in order to 'eat' the argument
 # that is supplied when $file_magic_command is called.
 win32_libid () {
   win32_libid_type="unknown"
@@ -4313,14 +4313,6 @@
       # 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+\"address@hidden"}
-"
-         ;;
-
        # Backslashes separate directories on plain windows
        *-*-mingw | *-*-os2*)
          $echo >> $output "\
@@ -4330,11 +4322,7 @@

        *)
          $echo >> $output "\
-      # Export the path to the program.
-      PATH=\"\$progdir:\$PATH\"
-      export PATH
-
-      exec \$program \${1+\"address@hidden"}
+      exec \$progdir/\$program \${1+\"address@hidden"}
 "
          ;;
        esac
@@ -4823,7 +4811,7 @@
          if $run eval "$relink_command"; then :
          else
            $echo "$modename: error: relink \`$file' with the above command 
before installing it" 1>&2
-           exit 1
+           exit 1
          fi
        fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]