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.
This commit is contained in:
John Birrell 1999-11-06 21:04:46 +00:00
parent 08630cfd05
commit 3ba3ae906a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52924
2 changed files with 18 additions and 0 deletions

View file

@ -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} == ""

View file

@ -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>