]> git.ipfire.org Git - thirdparty/libtool.git/commit
libtool: Fix mishandling compiler flags with MSVC tools
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Tue, 7 Jan 2025 17:34:11 +0000 (19:34 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 26 May 2025 14:18:40 +0000 (17:18 +0300)
commit4ded381a6f09cb761a05403450b5e34fec945f5a
tree66b39d0e6cf04dc9f13581d512f7cbe9abf7a1e4
parentee808d3f3046d274efa751039849e403fb6e4e80
libtool: Fix mishandling compiler flags with MSVC tools

With MSVC, linker flags were not properly being linked in during a
compile command. A check has been added to verify if there are linker
flags set and then use a different command when linking.

Fixes applied for bug#74175.

* build-aux/ltmain.in: Fix command parser for '-Wl' option for MSVC.
* m4/libtool.m4: Fix MSVC compile commands.
* tests/flags.at: Use '$GREP --' instead of '$FGREP' when comparing with
  stdout.
build-aux/ltmain.in
m4/libtool.m4
tests/flags.at