bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#37032: Make libtool prefer response files over linker script, for ll


From: Martin Storsjö
Subject: bug#37032: Make libtool prefer response files over linker script, for lld
Date: Wed, 14 Aug 2019 23:58:24 +0300 (EEST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

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

Attachment: 0001-Prefer-response-files-over-linker-scripts-for-mingw-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]