mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-09 00:10:21 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user