toolchain.eclass: check current version for HPPA workaround

As the GCC version being used for stage1 may not be the version we think
it is with the bootstrap compiler (i.e. $(gcc-full-version) may not
reflect what we're using because of ada-bootstrap).

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-05 16:55:09 +01:00
parent 12e4c095bc
commit 524897aa59

View File

@@ -1140,7 +1140,7 @@ toolchain_setup_ada() {
export CC="$(tc-getCC) -specs=${T}/ada.spec"
if ver_test $(gcc-fullversion) -lt 13 && [[ ${CTARGET} == hppa* ]] ; then
if ver_test ${PV} -lt 13 && [[ ${CTARGET} == hppa* ]] ; then
# For HPPA, the ada-bootstrap binaries seem to default
# to -fstack-protector still (maybe because of cross-building)
# so we need to override it for <13 (which ignores -fstack-protector)