aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/libbfd
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1999-11-06 21:04:46 +0000
committerJohn Birrell <jb@FreeBSD.org>1999-11-06 21:04:46 +0000
commit3ba3ae906a6058c1054e107cb82905e55497110a (patch)
tree289dc11d80a635678bfceefc6cbcfc65d0ab0dbb /gnu/usr.bin/binutils/libbfd
parent08630cfd0529b752ab6008ea34a30f957b9e0899 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/binutils/libbfd')
-rw-r--r--gnu/usr.bin/binutils/libbfd/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/libbfd/Makefile b/gnu/usr.bin/binutils/libbfd/Makefile
index 96f7065964df..b7c171bcd213 100644
--- a/gnu/usr.bin/binutils/libbfd/Makefile
+++ b/gnu/usr.bin/binutils/libbfd/Makefile
@@ -19,6 +19,15 @@ INTERNALLIB= true
INTERNALSTATICLIB=true
CLEANFILES+= targmatch.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}/bfd ${BINUTILSDISTDIR}/opcodes
+CFLAGS+= -I${BINUTILSDISTDIR}/bfd
+CFLAGS+= -I${BINUTILSDISTDIR}/include
+.endif
+
SELARCH=
.for _a in ${ARCHS}
.if ${SELARCH} == ""