]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: include --tag options, if specified, in the
authorKevin P. Fleming <kpfleming@backtobasicsmgmt.com>
Mon, 20 Oct 2003 13:36:10 +0000 (13:36 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 20 Oct 2003 13:36:10 +0000 (13:36 +0000)
relink_command in uninstalled .la files.  Also, preserve --silent,
--debug options when libtool re-execs itself.
* NEWS: Updated.

ChangeLog
NEWS
ltmain.in

index 25b4b83f91a57fa20a4db8131950e26e1126a84a..1d5c6c4a11700e1a815b4c28471d4e91f4c22ff7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-10-19  Kevin P. Fleming  <kpfleming@backtobasicsmgmt.com>
+       Charles Wilson <cygwin@cwilson.fastmail.fm>
+
+       * ltmain.in: include --tag options, if specified, in the
+       relink_command in uninstalled .la files.  Also, preserve --silent,
+       --debug options when libtool re-execs itself.
+       * NEWS: Updated.
+
 2003-10-19  Charles Wilson  <cygwin@cwilson.fastmail.fm>
 
        * libtoolize.in: protect sed expression against
diff --git a/NEWS b/NEWS
index 23f7bfc6344a459adbdeba3bceab731576d6d8af..42d33eed3000a2322ee490aa7852a83479e2f90f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
 New in 1.5b: 2003-??-??; CVS version 1.5a, Libtool team:
+* --tag, --silent and --debug options are preserved and reused when libtool
+  calls itself for relinking etc.
 * -no-suppress in compile mode shows compiler output for both PIC and non-PIC
   object compilation.
 * Shared objects (.lo) are no longer created when `-static' is passed in
index f79d11f8894143f70981578922caf34c28e1c863..284d08dbecbe5300842198a26e2fabae372fb275 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -202,6 +202,7 @@ do
       ;;
     tag)
       tagname="$arg"
+      preserve_args="${preserve_args}=$arg"
 
       # Check whether tagname contains only valid characters
       case $tagname in
@@ -264,6 +265,7 @@ do
   --debug)
     $echo "$progname: enabling shell trace mode"
     set -x
+    preserve_args="$preserve_args $arg"
     ;;
 
   --dry-run | -n)
@@ -294,6 +296,7 @@ do
 
   --quiet | --silent)
     show=:
+    preserve_args="$preserve_args $arg"
     ;;
 
   --tag) prevopt="--tag" prev=tag ;;
@@ -301,6 +304,7 @@ do
     set tag "$optarg" ${1+"$@"}
     shift
     prev=tag
+    preserve_args="$preserve_args --tag"
     ;;
 
   -dlopen)
@@ -5143,7 +5147,7 @@ fi\
        fi
       done
       # Quote the link command for shipping.
-      relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
+      relink_command="(cd `pwd`; $SHELL $0 $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
       if test "$hardcode_automatic" = yes ; then
         relink_command=
@@ -5768,7 +5772,7 @@ relink_command=\"$relink_command\""
     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