From 5d2c1780091c3511adb79f4f57154fc4d963ab7c Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 22 Jul 2025 01:14:28 +0900 Subject: [PATCH] sys-libs/error-standalone: fix cross-compilation by exporting CC, AR Closes: https://bugs.gentoo.org/960519 Signed-off-by: David Timber Part-of: https://github.com/gentoo/gentoo/pull/43099 Closes: https://github.com/gentoo/gentoo/pull/43099 Signed-off-by: Sam James --- sys-libs/error-standalone/error-standalone-2.0-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-libs/error-standalone/error-standalone-2.0-r1.ebuild b/sys-libs/error-standalone/error-standalone-2.0-r1.ebuild index 5c7d90f1c0aee..24f1689a8344d 100644 --- a/sys-libs/error-standalone/error-standalone-2.0-r1.ebuild +++ b/sys-libs/error-standalone/error-standalone-2.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic +inherit flag-o-matic toolchain-funcs DESCRIPTION="standalone implementation intended for musl" HOMEPAGE="https://hacktivis.me/git/error-standalone/" @@ -20,7 +20,7 @@ IUSE="static-libs" src_compile() { append-flags -fPIC - emake liberror.so $(usex static-libs liberror.a '') + emake CC="$(tc-getCC)" AR="$(tc-getAR)" liberror.so $(usex static-libs liberror.a '') } src_install() {