From: Peter Rosin Date: Wed, 12 Feb 2014 09:01:13 +0000 (+0100) Subject: libtool: actually strip -Wl when relinking with $LD X-Git-Tag: v2.4.3~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d666fc13b8e5a110e7600866d6fa55dade4d4a0;p=thirdparty%2Flibtool.git libtool: actually strip -Wl when relinking with $LD Fixes the regression from commit v2.4.2.444 which is causing a testsuite failure in duplicate_conv.at (seen on Cygwin). * build-aux/ltmain.in (func_mode_link): $reload_cmds typically starts with "$LD$reload_flag ..." when $LD is used to relink. Make the case expression match that when checking if $LD is in fact used to relink. Signed-off-by: Peter Rosin --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 3b4e6ec2d..f8e0f5fbb 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -8094,7 +8094,7 @@ EOF # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in - *\$LD\ *) wl= ;; + *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then