mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
bsd.linker.mk: Detect LLD when built with PACKAGE_VENDOR
Recent versions of homebrew's LLD are built with PACKAGE_VENDOR (since
e7c972b606
).
This means that the -v output is now
`Homebrew LLD 12.0.1 (compatible with GNU linkers)` and bsd.linker.mk no
longer detects it as LLD since it only checks whether the first word is
LLD. This change allow me to build on macOS again and should unbreak the
GitHub actions CI.
Reviewed By: imp, uqs
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D31224
This commit is contained in:
parent
75cb2382b8
commit
f8147dad44
@ -69,7 +69,9 @@ _ld_version!= (${${ld}} -v 2>&1 || echo none) | sed -n 1p
|
||||
${X_}LINKER_TYPE= bfd
|
||||
${X_}LINKER_FREEBSD_VERSION= 0
|
||||
_v= ${_ld_version:M[1-9]*.[0-9]*:[1]}
|
||||
.elif ${_ld_version:[1]} == "LLD"
|
||||
.elif ${_ld_version:MLLD}
|
||||
# Strip any leading PACKAGE_VENDOR string (e.g. "Homebrew")
|
||||
_ld_version:=${_ld_version:[*]:C/^.* LLD /LLD /:[@]}
|
||||
${X_}LINKER_TYPE= lld
|
||||
_v= ${_ld_version:[2]}
|
||||
.if ${_ld_version:[3]} == "(FreeBSD"
|
||||
|
Loading…
Reference in New Issue
Block a user