diff options
author | Warner Losh <imp@FreeBSD.org> | 2011-05-19 05:13:25 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2011-05-19 05:13:25 +0000 |
commit | 0163af236079a6c999635d270ff92f9c3519f22b (patch) | |
tree | 7b2019db9e3ff1e80536e1fe884377a2692f4388 /Makefile.inc1 | |
parent | 0855e42386b6846ae819eaae298257d2f8a70286 (diff) | |
download | src-test2-0163af236079a6c999635d270ff92f9c3519f22b.tar.gz src-test2-0163af236079a6c999635d270ff92f9c3519f22b.zip |
Implement WITH{,OUT}_{GCC,BINUTILS} to provide finer-grained control
over building gcc and binutils. They default to true, unless
MK_TOOLCHAIN is no.
Reviewed by: ru@
Notes
Notes:
svn path=/head/; revision=222090
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 1e613affecda..9ebc1e34a73b 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1132,6 +1132,10 @@ _kgzip= usr.sbin/kgzip .endif .endif +.if ${MK_BINUTILS} != "no" +_binutils= gnu/usr.bin/binutils +.endif + .if ${MK_CLANG} != "no" .if ${CC:T:Mclang} == "clang" _clang= usr.bin/clang @@ -1139,12 +1143,16 @@ _clang_libs= lib/clang .endif .endif +.if ${MK_GCC} != "no" +_cc= gnu/usr.bin/cc +.endif + cross-tools: .for _tool in \ ${_clang_libs} \ ${_clang} \ - gnu/usr.bin/binutils \ - gnu/usr.bin/cc \ + ${_binutils} \ + ${_cc} \ usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint \ ${_btxld} \ ${_crunchide} \ |