diff --git a/ChangeLog b/ChangeLog index 25b4b83f..1d5c6c4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-10-19 Kevin P. Fleming + Charles Wilson + + * 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 * libtoolize.in: protect sed expression against diff --git a/NEWS b/NEWS index 23f7bfc6..42d33eed 100644 --- 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 diff --git a/ltmain.in b/ltmain.in index f79d11f8..284d08db 100644 --- 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