aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2018-06-20 16:10:02 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2018-06-20 16:10:02 +0000
commitd74021d65b104beb34c3a0d4c65f149dd6882876 (patch)
tree85ba6efe7c960ff7bb738728541c38f121e8294f /gnu/usr.bin
parent78442297f501090c728fb0c4f9f2ab556ef1296c (diff)
downloadsrc-d74021d65b104beb34c3a0d4c65f149dd6882876.tar.gz
src-d74021d65b104beb34c3a0d4c65f149dd6882876.zip
Notes
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index c1a14ab57aa1..5ac308b3dd2c 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -7,8 +7,10 @@ ELF_SCR_EXT= x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw
.PATH: ${SRCDIR}/ld
PROG= ld.bfd
-.if ${MK_LLD_IS_LD} == "no"
+.if (!defined(TOOLS_PREFIX) && ${MK_LLD_IS_LD} == "no") || \
+ (defined(TOOLS_PREFIX) && ${MK_LLD_BOOTSTRAP} == "no")
MAN= ld.1
+LINKS= ${BINDIR}/ld.bfd ${BINDIR}/ld
.else
MAN= ld.bfd.1
CLEANFILES+= ld.bfd.1
@@ -57,9 +59,6 @@ CLEANFILES+= ldemul-list.h stringify.sed
FILES= ${LDSCRIPTS:S|^|ldscripts/|}
FILESDIR= ${SCRIPTDIR}
-.if ${MK_LLD_IS_LD} == "no"
-LINKS= ${BINDIR}/ld.bfd ${BINDIR}/ld
-.endif
HOST= ${TARGET_TUPLE}
LIBSEARCHPATH= \"=/lib\":\"=/usr/lib\"