mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00:00
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:
parent
08630cfd05
commit
3ba3ae906a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52924
|
@ -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} == ""
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue