From 9a76a9aa80ba00d63cee9efc14fb5f16f26e1686 Mon Sep 17 00:00:00 2001 From: Jakov Smolić Date: Thu, 7 Jul 2022 11:58:15 +0200 Subject: dev-embedded/u-boot-tools: Fix cross-compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cross CFLAGS and LDFLAGS are leaking into host CFLAGS and LDFLAGS and thus it's breaking cross compilation. Signed-off-by: Jakov Smolić --- dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild') diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild index 92b7d18e73fb..7bf924633a93 100644 --- a/dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild +++ b/dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild @@ -34,6 +34,7 @@ src_prepare() { src_configure() { tc-export AR BUILD_CC CC PKG_CONFIG + tc-export_build_env } src_compile() { @@ -45,8 +46,8 @@ src_compile() { AR="${AR}" CC="${CC}" HOSTCC="${BUILD_CC}" - HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' - HOSTLDFLAGS="${LDFLAGS}" + HOSTCFLAGS="${BUILD_CFLAGS} ${BUILD_CPPFLAGS}"' $(HOSTCPPFLAGS)' + HOSTLDFLAGS="${BUILD_LDFLAGS}" ) emake "${myemakeargs[@]}" tools-only_defconfig -- cgit v1.2.3-65-gdbad