commit: 524897aa59ee794c55efd0c341c65163aa673455
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May 5 15:55:09 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May 5 15:55:09 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=524897aa
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 <AT> gentoo.org>
eclass/toolchain.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index b4a4124ce8fe..6d76823fb549 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -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)