From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 95B23158094 for ; Thu, 7 Jul 2022 10:02:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E32EE0EB8; Thu, 7 Jul 2022 10:02:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6AB5DE0EB8 for ; Thu, 7 Jul 2022 10:02:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A35C340EAB for ; Thu, 7 Jul 2022 10:02:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6EE9451F for ; Thu, 7 Jul 2022 10:02:15 +0000 (UTC) From: "Jakov Smolić" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jakov Smolić" Message-ID: <1657187895.9a76a9aa80ba00d63cee9efc14fb5f16f26e1686.jsmolic@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/u-boot-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild X-VCS-Directories: dev-embedded/u-boot-tools/ X-VCS-Committer: jsmolic X-VCS-Committer-Name: Jakov Smolić X-VCS-Revision: 9a76a9aa80ba00d63cee9efc14fb5f16f26e1686 X-VCS-Branch: master Date: Thu, 7 Jul 2022 10:02:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 964fe836-59a1-4898-a763-836abe963c8d X-Archives-Hash: 4d1a808fbce4e7ea89b768cdb246b871 commit: 9a76a9aa80ba00d63cee9efc14fb5f16f26e1686 Author: Jakov Smolić gentoo org> AuthorDate: Thu Jul 7 09:58:15 2022 +0000 Commit: Jakov Smolić gentoo 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ć 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