libtool reexecs itself when --mode=install is used to install a library (it runs --mode=finish automaticall). However, if the user specified --debug and/or --silent to the --mode=install command, those are not passed to the --mode=finish command that is run automatically. This patch fixes that.

--- ltmain.in~  Mon Apr 14 14:58:24 2003
+++ ltmain.in   Thu Oct 16 09:02:56 2003
@@ -238,6 +238,7 @@
   --debug)
     $echo "$progname: enabling shell trace mode"
     set -x
+    preserve_args="$preserve_args $arg"
     ;;

   --dry-run | -n)
@@ -268,6 +269,7 @@

   --quiet | --silent)
     show=:
+    preserve_args="$preserve_args $arg"
     ;;

   --tag) prevopt="--tag" prev=tag ;;
@@ -5653,7 +5655,7 @@
     if test -n "$current_libdirs"; then
       # Maybe just do a dry run.
       test -n "$run" && current_libdirs=" -n$current_libdirs"
-      exec_cmd='$SHELL $0 --finish$current_libdirs'
+      exec_cmd='$SHELL $0 $preserve_args --finish$current_libdirs'
     else
       exit 0
     fi




_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to