Otherwise sysroot.eclass will create a broken wrapper when it shouldn't
create a wrapper at all.

Signed-off-by: James Le Cuirot <[email protected]>
---
 eclass/toolchain-funcs.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 8299c103c8dc..1f13fdf5d624 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -417,6 +417,8 @@ tc-env_build() {
        RANLIB=$(tc-getBUILD_RANLIB) \
        READELF=$(tc-getBUILD_READELF) \
        CHOST=${CBUILD:-${CHOST}} \
+       ESYSROOT=${BROOT} \
+       SYSROOT= \
        "$@"
 }

--
2.53.0

Reply via email to