libtool: only strip -Wl when linking with $LD.v2.4.2.444
commita4ffcdb5e0f207656bb2584b1c4e1702a6d7fa32
authorGary V. Vaughan <gary@gnu.org>
Wed, 1 Jan 2014 23:13:13 +0000 (2 12:13 +1300)
committerGary V. Vaughan <gary@gnu.org>
Wed, 1 Jan 2014 23:26:44 +0000 (2 12:26 +1300)
treeec337933b8fcf5e90f898f576cec1447a6f72ff8
parentd695e72b7467c4bac13d631d36532488372da406
libtool: only strip -Wl when linking with $LD.

* build-aux/ltmain.in (func_mode_link): Don't strip -Wl from the
linker flags, except when linking with $LD, otherwise compiler
drivers that don't recognize and pass linker flags through will
choke on unrecognized options.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
build-aux/ltmain.in