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
diff --git a/openpower/package/sbe/sbe.mk b/openpower/package/sbe/sbe.mk
index 2f6d5b4..78120f1 100644
--- a/openpower/package/sbe/sbe.mk
+++ b/openpower/package/sbe/sbe.mk
@@ -14,8 +14,8 @@
SBE_INSTALL_TARGET = NO
define SBE_BUILD_CMDS
- SBE_COMMIT_ID=$(SBE_VERSION) $(MAKE) -C $(@D) \
- LD_LIBRARY_PATH=$(HOST_DIR)/usr/lib \
+ SBE_COMMIT_ID=$(SBE_VERSION) $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
+ LD_LIBRARY_PATH=$(HOST_DIR)/usr/lib \
CROSS_COMPILER_PATH=$(PPE42_GCC_BIN) \
all
endef