[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] preserve --silent/--debug args when libtool re-execs itself
From: |
Kevin P. Fleming |
Subject: |
[PATCH] preserve --silent/--debug args when libtool re-execs itself |
Date: |
Sun, 19 Oct 2003 12:41:52 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030925 |
When libtool is called with --mode=install for a library, it re-execs
itself with --mode=finish after installing the library. If the
original invocation of libtool included --silent and/or --debug
parameters, they are not passed on to the re-execed libtool. This
patches corrects that (against current CVS).
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.350
diff -u -b -r1.350 ltmain.in
--- ltmain.in 7 Oct 2003 17:13:41 -0000 1.350
+++ ltmain.in 19 Oct 2003 19:37:55 -0000
@@ -264,6 +264,7 @@
--debug)
$echo "$progname: enabling shell trace mode"
set -x
+ preserve_args="$preserve_args $arg"
;;
--dry-run | -n)
@@ -294,6 +295,7 @@
--quiet | --silent)
show=:
+ preserve_args="$preserve_args $arg"
;;
--tag) prevopt="--tag" prev=tag ;;
@@ -5768,7 +5770,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
- [PATCH] preserve --silent/--debug args when libtool re-execs itself,
Kevin P. Fleming <=