toolchain-funcs.eclass: Use host vars in tc-getBUILD* when not cross
authorMichał Górny <mgorny@gentoo.org>
Fri, 8 Sep 2017 08:30:29 +0000 (10:30 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 1 Jan 2018 10:34:45 +0000 (11:34 +0100)
commitea988da8e02e1ba501c73c961147f6ec63c58033
treeb08eeb2e2bebb4d623dfd67f674e045145cea011
parentb276da8ae379f7eb0dcb9e9020bb37035db3376c
toolchain-funcs.eclass: Use host vars in tc-getBUILD* when not cross

Make tc-getBUILD* functions respect host variables (CC & co.) when
not cross-compiling. This removes the necessity of overriding BUILD_*
along with the regular variables on the systems that are not concerned
about cross-compilation, and does not change the behavior for those
which are.

Closes: https://bugs.gentoo.org/630282
eclass/toolchain-funcs.eclass