On 4/4/2020 12:40 AM, Fangrui Song wrote:
The ELF port of LLD (the LLVM linker) is a drop-in replacement for GNU ld and is widely used nowadays.https://reviews.llvm.org/D31199 added a User-Agent style hack to make libtool recognize lld as a GNU ld compatible linker, but it would be nice to support the "LLD" version string directly so that LLD can eventually get rid of the hack.
libtool already works fine as is without the patch. The "hack" will never be removed.