]> 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>
Thu, 7 Aug 2025 17:20:01 +0000 (20:20 +0300)
commit43068986b068d0b7629a8eba74dbc133bf79ee94
tree66b39d0e6cf04dc9f13581d512f7cbe9abf7a1e4
parentaf7df02434ee4affe1e1dc7f6f0b24a6165619c3
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