gnustep-base.eclass: override toolchain to clang before GS_ENV

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44437
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Alfred Wingate
2025-11-11 20:24:00 +01:00
committed by Bernard Cafarelli
parent 24d70f75e5
commit 77b5bde7ef
+13 -7
View File
@@ -131,6 +131,19 @@ egnustep_env() {
esac
fi
if has_version "gnustep-base/gnustep-make[libobjc2]" && tc-is-gcc;
then
# Set clang for packages that do not respect gnustep-make
# settings (gnustep-base's configure for example)
einfo "Forcing clang"
export CC="${CHOST}-clang"
export CXX="${CHOST}-clang"
export CPP="${CHOST}-clang -E"
export LD="${CHOST}-clang"
strip-unsupported-flags
fi
# Set up env vars for make operations
GS_ENV=(
AUXILIARY_LDFLAGS="${LDFLAGS}"
@@ -151,13 +164,6 @@ egnustep_env() {
use doc && GS_ENV+=( VARTEXFONTS="${T}"/fonts )
if has_version "gnustep-base/gnustep-make[libobjc2]" && tc-is-gcc;
then
# Set clang for packages that do not respect gnustep-make
# settings (gnustep-base's configure for example)
export CC=clang CXX=clang CPP="clang -E" LD="clang"
fi
return 0
fi
die "gnustep-make not installed!"