[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] preserve --silent/--debug args when libtool re-execs itself
From: |
Charles Wilson |
Subject: |
Re: [PATCH] preserve --silent/--debug args when libtool re-execs itself |
Date: |
Sun, 19 Oct 2003 18:58:39 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 |
Okay, the atttached patch combines Kevin's changes with a variation on
my original suggestion, and will fix the aforementioned issue.
--
Charles Wilson wrote:
Nevermind. Making the modifications I suggest below does not appear to
fix http://mail.gnu.org/archive/html/libtool/2003-08/msg00017.html
--
Charles Wilson wrote:
Hmmm...I have a hunch that if you ALSO use similar magic for --tag
(but you'd have to be careful to also include --tag's argument) in
preserve_args, it might fix this problem:
http://mail.gnu.org/archive/html/libtool/2003-08/msg00017.html
Just a thought.
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.350
diff -u -r1.350 ltmain.in
--- ltmain.in 7 Oct 2003 17:13:41 -0000 1.350
+++ ltmain.in 19 Oct 2003 22:53:16 -0000
@@ -202,6 +202,7 @@
;;
tag)
tagname="$arg"
+ preserve_args="${preserve_args}=$arg"
# Check whether tagname contains only valid characters
case $tagname in
@@ -264,6 +265,7 @@
--debug)
$echo "$progname: enabling shell trace mode"
set -x
+ preserve_args="$preserve_args $arg"
;;
--dry-run | -n)
@@ -294,6 +296,7 @@
--quiet | --silent)
show=:
+ preserve_args="$preserve_args $arg"
;;
--tag) prevopt="--tag" prev=tag ;;
@@ -301,6 +304,7 @@
set tag "$optarg" ${1+"$@"}
shift
prev=tag
+ preserve_args="$preserve_args --tag"
;;
-dlopen)
@@ -5143,7 +5147,7 @@
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 @@
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
2003-10-19 Kevin P. Fleming <address@hidden>
Charles Wilson <address@hidden>
* 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.