[PATCH] toolchain-funcs.eclass: Set SYSROOT and ESYSROOT in tc-env_build

James Le Cuirot <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.