libtool
[Top][All Lists]
Advanced

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

[PATCH] preserve --silent/--debug args when libtool reexecs itself


From: Kevin P. Fleming
Subject: [PATCH] preserve --silent/--debug args when libtool reexecs itself
Date: Thu, 16 Oct 2003 09:05:52 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030925

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






reply via email to

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