diff options
author | jbeich <jbeich@FreeBSD.org> | 2018-01-02 04:16:39 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2018-01-02 04:16:39 +0800 |
commit | b4b10af9a0d0cd79ecd9065bff64ecf145f4c852 (patch) | |
tree | 9c61545768931ca04a00cdde560a939552779310 /Mk/bsd.port.mk | |
parent | 6b3bd69a2d6fc54de24b5cc6e36ddc4222fead05 (diff) | |
download | freebsd-ports-gnome-b4b10af9a0d0cd79ecd9065bff64ecf145f4c852.tar.gz freebsd-ports-gnome-b4b10af9a0d0cd79ecd9065bff64ecf145f4c852.tar.zst freebsd-ports-gnome-b4b10af9a0d0cd79ecd9065bff64ecf145f4c852.zip |
bsd.port.mk: don't create a new variable just to check LLD
PR: 224760
Approved by: portmgr (antoine)
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 1ecc73966f17..91455caf8e9b 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1833,8 +1833,7 @@ PKG_DEPENDS+= ${LOCALBASE}/sbin/pkg:${PKG_ORIGIN} .include "${PORTSDIR}/Mk/bsd.gcc.mk" .endif -_TEST_LD=/usr/bin/ld -.if defined(LLD_UNSAFE) && ${_TEST_LD:tA} == "/usr/bin/ld.lld" +.if defined(LLD_UNSAFE) && ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld LDFLAGS+= -fuse-ld=bfd . if !defined(USE_BINUTILS) . if exists(/usr/bin/ld.bfd) |