gcc: fix version check for bootstrap

This commit is contained in:
Owen Rafferty 2022-06-12 21:29:39 -05:00
parent bb22e54320
commit 631bb4b14d
No known key found for this signature in database
GPG Key ID: A68B10E2554DEBCB

View File

@ -17,10 +17,10 @@ mkdir -p gcc-build
cd gcc-build
# Grab the system's GCC version.
gcc_version=$(gcc -dumpversion) || gcc_version=null
gcc_version=$(gcc -dumpfullversion 2>/dev/null) || gcc_version=null
# Skip the bootstrap process if we are able.
case $2 in "$gcc_version"*)
case $2 in "${gcc_version%%.*}"*)
printf '%s\n' "Minor version difference, disabling bootstrap."
bootstrap=--disable-bootstrap
esac