summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1999-11-06 21:55:33 +0000
committerJohn Birrell <jb@FreeBSD.org>1999-11-06 21:55:33 +0000
commite60947e1ada361e362f98277414873f682e72e4b (patch)
treece5b8c7d792a0dc6e1f2ac1f12f199700b5c349e /gnu/usr.bin/binutils
parent19bf8ac856cb8f4d8d8672434fde2ca98110e257 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/as/Makefile.inc012
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/as/Makefile.inc0 b/gnu/usr.bin/binutils/as/Makefile.inc0
index 25317854e071..cdcd466861be 100644
--- a/gnu/usr.bin/binutils/as/Makefile.inc0
+++ b/gnu/usr.bin/binutils/as/Makefile.inc0
@@ -25,3 +25,15 @@ LDADD+= -L${RELTOP}/libopcodes -lopcodes
DPADD+= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a
DPADD+= ${RELTOP}/libopcodes/libopcodes.a
+
+# 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}/gas ${BINUTILSDISTDIR}/gas/config
+CFLAGS+= -I${BINUTILSDISTDIR}/gas
+CFLAGS+= -I${BINUTILSDISTDIR}/gas/config
+CFLAGS+= -I${BINUTILSDISTDIR}/bfd
+CFLAGS+= -I${BINUTILSDISTDIR}/include
+CFLAGS+= -I${BINUTILSDISTDIR}
+.endif