diff options
author | jb <jb@FreeBSD.org> | 1999-11-06 21:04:46 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1999-11-06 21:04:46 +0000 |
commit | d6ff5f1a9af0b6b429e875ecd575023916095500 (patch) | |
tree | 289dc11d80a635678bfceefc6cbcfc65d0ab0dbb /gnu/usr.bin/binutils/libbfd/Makefile | |
parent | b6a400c7811e7e98ce362bdfb4ad52d838245d31 (diff) | |
download | FreeBSD-src-d6ff5f1a9af0b6b429e875ecd575023916095500.zip FreeBSD-src-d6ff5f1a9af0b6b429e875ecd575023916095500.tar.gz |
Add a BINUTILSDISTDIR hook to provide a path to a full binutils release
outside the contrib files that FreeBSD distributes. This for use by
those who want to work on porting FreeBSD to additional architectures.
Diffstat (limited to 'gnu/usr.bin/binutils/libbfd/Makefile')
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/Makefile | 9 |
1 files changed, 9 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} == "" |