GNU bug report logs -
#37032
Make libtool prefer response files over linker script, for lld
Previous Next
Reported by: Martin Storsjö <martin <at> martin.st>
Date: Wed, 14 Aug 2019 20:59:02 UTC
Severity: normal
Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
When linking for mingw with libtool, with lld as linker (where lld
impersonates GNU ld and implements the subset of commonly used GNU ld
features), libtool will use a linker script for passing long lists of
object files to the linker.
This fails with lld, where the mingw/coff part of lld doesn't support
linker script. It does support response files (which also GNU ld does)
though, so by making libtool check for support for response files before
linker script (which is assumed to be supported if with_gnu_ld is set),
this issue can be avoided. The attached patch accomplishes this. Are there
any drawbacks to this approach, other than being less tested than the
current status quo?
This patch has been carried in msys2's copy of libtool since late last
year, with no reported issues to my knowledge.
// Martin
[0001-Prefer-response-files-over-linker-scripts-for-mingw-.patch (text/x-diff, attachment)]
This bug report was last modified 205 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.