diff options
author | emaste <emaste@FreeBSD.org> | 2018-03-29 23:02:05 +0800 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2018-03-29 23:02:05 +0800 |
commit | 9fc9786c76713b90bb81ed42caf6f8d368eea602 (patch) | |
tree | 4529b71ed63524fb22a9f0d01200a89e8f752a9f /Mk | |
parent | 6417348a7d820fe2d77751aafe80870cb1994c9d (diff) | |
download | freebsd-ports-gnome-9fc9786c76713b90bb81ed42caf6f8d368eea602.tar.gz freebsd-ports-gnome-9fc9786c76713b90bb81ed42caf6f8d368eea602.tar.zst freebsd-ports-gnome-9fc9786c76713b90bb81ed42caf6f8d368eea602.zip |
Use BINARY_ALIAS to make LLD_UNSAFE more widely applicable
Some ports do not honour $LD or -fuse-ld=bfd in $CFLAGS, but do invoke
ld via $PATH. Automatically set BINARY_ALIAS+=ld=${LD} when LLD_UNSAFE
is active to use ld.bfd for these ports.
Approved by: portmgr (antoine)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D14876
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 250e87e78aa7..02ad47c0e288 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1844,6 +1844,7 @@ PKG_DEPENDS+= ${LOCALBASE}/sbin/pkg:${PKG_ORIGIN} .if defined(LLD_UNSAFE) && ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld LDFLAGS+= -fuse-ld=bfd +BINARY_ALIAS+= ld=${LD} . if !defined(USE_BINUTILS) . if exists(/usr/bin/ld.bfd) LD= /usr/bin/ld.bfd |