commit: 9a76a9aa80ba00d63cee9efc14fb5f16f26e1686
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 7 09:58:15 2022 +0000
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Thu Jul 7 09:58:15 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a76a9aa
dev-embedded/u-boot-tools: Fix cross-compilation
Cross CFLAGS and LDFLAGS are leaking into host CFLAGS and LDFLAGS and
thus it's breaking cross compilation.
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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