diff options
author | sjg <sjg@FreeBSD.org> | 2015-06-15 20:11:15 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2015-06-15 20:11:15 +0000 |
commit | 3f58070b3ad1cfb47ef93e39b55c3b5b11f3312c (patch) | |
tree | 624b9b692576f9c51ed284d8dec3a91237c24876 /targets | |
parent | e045ce7358e89e65fef77c3890001525e987c61f (diff) | |
download | FreeBSD-src-3f58070b3ad1cfb47ef93e39b55c3b5b11f3312c.zip FreeBSD-src-3f58070b3ad1cfb47ef93e39b55c3b5b11f3312c.tar.gz |
Pay attention to MK_ELFTOOLCHAIN_TOOLS so we build the desired tools.
Diffstat (limited to 'targets')
-rw-r--r-- | targets/pseudo/toolchain/Makefile.depend | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/targets/pseudo/toolchain/Makefile.depend b/targets/pseudo/toolchain/Makefile.depend index b15598b..92d1c88 100644 --- a/targets/pseudo/toolchain/Makefile.depend +++ b/targets/pseudo/toolchain/Makefile.depend @@ -7,21 +7,38 @@ DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} .if !defined(MK_CLANG) .include "${SRCTOP}/share/mk/src.opts.mk" .endif +DIRDEPS= + +.if ${MK_ELFTOOLCHAIN_TOOLS} == "yes" +DIRDEPS+= \ + usr.bin/addr2line \ + usr.bin/cxxflit \ + usr.bin/elfcopy \ + usr.bin/nm \ + usr.bin/readelf \ + usr.bin/size \ + usr.bin/strip \ + usr.bin/strings \ + +.else +DIRDEPS+= \ + gnu/usr.bin/binutils/addr2line \ + gnu/usr.bin/binutils/nm \ + gnu/usr.bin/binutils/readelf \ + gnu/usr.bin/binutils/size \ + gnu/usr.bin/binutils/strip \ + gnu/usr.bin/binutils/strings \ + +.endif DIRDEPS= \ usr.bin/xinstall \ - gnu/usr.bin/binutils/addr2line \ gnu/usr.bin/binutils/ar \ gnu/usr.bin/binutils/as \ gnu/usr.bin/binutils/ld \ - gnu/usr.bin/binutils/nm \ gnu/usr.bin/binutils/objcopy \ gnu/usr.bin/binutils/objdump \ gnu/usr.bin/binutils/ranlib \ - gnu/usr.bin/binutils/readelf \ - gnu/usr.bin/binutils/size \ - gnu/usr.bin/binutils/strings \ - gnu/usr.bin/binutils/strip \ .if ${MK_CLANG} == "yes" |