diff options
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/Makefile | 9 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/libopcodes/Makefile | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/libbfd/Makefile b/gnu/usr.bin/binutils/libbfd/Makefile index 96f7065..b7c171b 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} == "" diff --git a/gnu/usr.bin/binutils/libopcodes/Makefile b/gnu/usr.bin/binutils/libopcodes/Makefile index 76448cc..05ce09d 100644 --- a/gnu/usr.bin/binutils/libopcodes/Makefile +++ b/gnu/usr.bin/binutils/libopcodes/Makefile @@ -14,4 +14,13 @@ NOPIC= true INTERNALLIB= true INTERNALSTATICLIB=true +# 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}/opcodes -I${BINUTILSDISTDIR}/bfd +CFLAGS+= -I${BINUTILSDISTDIR}/include +.endif + .include <bsd.lib.mk> |