From a42d1204192267b7970a2ec6cd75e930fe18d85f Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 23 Dec 2022 11:44:02 +0200 Subject: [PATCH] games-util/xone: get current CC with toolchain-funcs * Hopefully finally solves Ref #43 Signed-off-by: Alfred Wingate --- games-util/xone/xone-0.3-r1.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/games-util/xone/xone-0.3-r1.ebuild b/games-util/xone/xone-0.3-r1.ebuild index 11b3692..5370576 100644 --- a/games-util/xone/xone-0.3-r1.ebuild +++ b/games-util/xone/xone-0.3-r1.ebuild @@ -44,6 +44,8 @@ pkg_setup() { BUILD_TARGETS="module" BUILD_PARAMS="KERNEL_DIR=${KERNEL_DIR} V=1" + # TODO: more robust solution in linux-mod would be ideal + KERNEL_CC="$(tc-getCC)" if linux_chkconfig_present CC_IS_CLANG; then tc-is-clang || : "${KERNEL_CC:=${CHOST}-clang}" if linux_chkconfig_present LD_IS_LLD; then @@ -54,7 +56,7 @@ pkg_setup() { fi fi - BUILD_PARAMS+=" ${KERNEL_CC:+CC=${KERNEL_CC}} ${KERNEL_LD:+LD=${KERNEL_LD}}" + BUILD_PARAMS+=" CC=${KERNEL_CC} ${KERNEL_LD:+LD=${KERNEL_LD}}" } src_unpack() {