From e60947e1ada361e362f98277414873f682e72e4b Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sat, 6 Nov 1999 21:55:33 +0000 Subject: Add the BINUTILSDISTDIR hook here too. --- gnu/usr.bin/binutils/as/Makefile.inc0 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gnu') diff --git a/gnu/usr.bin/binutils/as/Makefile.inc0 b/gnu/usr.bin/binutils/as/Makefile.inc0 index 25317854e0715..cdcd466861beb 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 -- cgit v1.3