aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1999-11-06 22:36:40 +0000
committerJohn Birrell <jb@FreeBSD.org>1999-11-06 22:36:40 +0000
commita719bd2fd1f3fb411f8b733d59630f95e472fe8e (patch)
tree86d0f8eb2e27c568bfb680276d17d35b5c8bb68f /gnu
parent6fc579d56cc8c3a986f10f557ce14e1a94334b8b (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index 9af66f78b3117..0711510bfc69c 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -20,6 +20,14 @@ DPADD+= ${RELTOP}/libiberty/libiberty.a
CLEANDIRS+= ldscripts
CLEANFILES+= ldemul-list.h
+# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
+# binutils release. FreeBSD only distributes the bits that are required to
+# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
+.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
+.PATH: ${BINUTILSDISTDIR}/ld
+CFLAGS+= -I${BINUTILSDISTDIR}/ld
+.endif
+
EMXFR=
EMLST=
.for _e in ${EMS}