freebsd-skq/targets/pseudo/toolchain/Makefile.depend
bdrewery cbc5242afd META MODE: Fix 'make bootstrap-tools'.
The main problem was bitrot after elftoolchain being swapped in for the
GNU toolchain.

This also reworks how the list of 'host allowed' libraries is determined
to only allow INTERNALLIBs, which is needed for libelftc to come in.

For usr.bin/readelf use the same hack, as libelf and libdward, to bring in
the needed sys/ headers for host builds.  This has not yet been a problem due
to readelf not being built as a host tool in buildworld.  This is possible
in the meta build though when building the toolchain.

Sponsored by:	EMC / Isilon Storage Division
2015-11-25 19:44:51 +00:00

32 lines
561 B
Makefile

# $FreeBSD$
# This file is not autogenerated - take care!
.if !defined(MK_CLANG)
.include "${SRCTOP}/share/mk/src.opts.mk"
.endif
DIRDEPS= \
gnu/usr.bin/binutils/as \
gnu/usr.bin/binutils/ld \
usr.bin/addr2line \
usr.bin/ar \
usr.bin/cxxfilt \
usr.bin/elfcopy \
usr.bin/elfdump \
usr.bin/nm \
usr.bin/readelf \
usr.bin/size \
usr.bin/strings \
usr.bin/strip \
usr.bin/xinstall \
.if ${MK_CLANG_BOOTSTRAP} == "yes"
DIRDEPS+= targets/pseudo/clang
.endif
.if ${MK_GCC_BOOTSTRAP} == "yes"
DIRDEPS+= targets/pseudo/gcc
.endif
.include <dirdeps.mk>