sbe: Fix Fedora 33 build with correct use of Host paths
SBE is using tools from the underling distro (from PATH) mixed in
with tools from the buildroot host/toolchain, mixed with tools
from the ppe42 toolchain.
These changes attempt to make a bit more sense from this and
avoid issues where a binary from one of those tries to use
dynamic libraries from the other, somthing made evident by
readelf on Fedora33 being linked with OpenSSL/Kerberos
libraries, which breaks the build step..
Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
diff --git a/openpower/package/ppe42-gcc/ppe42-gcc.mk b/openpower/package/ppe42-gcc/ppe42-gcc.mk
index 8aa73ce..c6711a3 100644
--- a/openpower/package/ppe42-gcc/ppe42-gcc.mk
+++ b/openpower/package/ppe42-gcc/ppe42-gcc.mk
@@ -26,6 +26,8 @@
--with-gnu-ld \
--with-gmp=$(HOST_DIR)/usr \
--with-mpfr=$(HOST_DIR)/usr \
+ --with-sysroot=$(STAGING_DIR) \
+ --with-build-time-tools=$(PPE42_TOOLCHAIN_BIN)/bin \
&& \
$(MAKE) configure-host && \
$(MAKE) CFLAGS=-Wno-error all-gcc