]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: actually strip -Wl when relinking with $LD
authorPeter Rosin <peda@lysator.liu.se>
Wed, 12 Feb 2014 09:01:13 +0000 (10:01 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Wed, 12 Feb 2014 09:04:56 +0000 (10:04 +0100)
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 <peda@lysator.liu.se>
build-aux/ltmain.in

index 3b4e6ec2d6b283f4ed9837ab11a425c8c0e18572..f8e0f5fbb3be0dd4439a265c74b687b5c0c3aea9 100644 (file)
@@ -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