summaryrefslogtreecommitdiffstats
path: root/google-go-lang
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-01-13 17:44:59 +0000
committer Eric Hameleers <alien@slackware.com>2022-01-13 17:44:59 +0000
commite07f923a503a61b1aa282751a2a4f22d812c5008 (patch)
tree8865f339d7c0fae77a5f77e924df3a96896a45bc /google-go-lang
parent135c805f609a6d264edbd62162c7dd76a7a94347 (diff)
downloadasb-e07f923a503a61b1aa282751a2a4f22d812c5008.tar.gz
asb-e07f923a503a61b1aa282751a2a4f22d812c5008.tar.xz
google-go-lang: gcc is too old in Slackware 14.2
Diffstat (limited to 'google-go-lang')
-rwxr-xr-xgoogle-go-lang/build/google-go-lang.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/google-go-lang/build/google-go-lang.SlackBuild b/google-go-lang/build/google-go-lang.SlackBuild
index 6ab1cb7b..90e7b2e2 100755
--- a/google-go-lang/build/google-go-lang.SlackBuild
+++ b/google-go-lang/build/google-go-lang.SlackBuild
@@ -174,7 +174,7 @@ echo Building ...
# compiler needs only be compiled for the host OS, which it detects.
unset GOBIN GOPATH GOOS GOARCH
-if [ "$ARCH" = "i586" ]; then
+if [ "$ARCH" = "i586" ] || [ $(gcc -dumpversion |cut -d. -f1) -lt 7 ]; then
# There's an issue using GCC's go as bootstrap for Google's go >= 1.16 on x86.
# See https://www.linuxquestions.org/questions/showthread.php?p=6253507
# Solution is to use the old go1.4 compiler as the bootstrap.