multilib.eclass: fix cross-compiling multilib ebuilds
authorTomasz Figa <tfiga@chromium.org>
Tue, 16 May 2017 19:09:58 +0000 (15:09 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 16 May 2017 19:10:33 +0000 (15:10 -0400)
commit9aae1e787fb4ce16eb7a0a0a338b801aa4c482b8
tree9bb4299f890112923b64c9f5b982e5ea9a0bf31d
parent5a3cac174fd86bfb439d155a15900c6315dd56cc
multilib.eclass: fix cross-compiling multilib ebuilds

Current code assumes that CBUILD is always the same as CHOST, however it
is desirable to allow cross compiling into multilib sysroots, where
obviously the assumed condition does not hold anymore. To fix this,
let's override CBUILD only if original CHOST and CBUILD are equal, i.e.
we are not cross-compiling.
eclass/multilib.eclass