aboutsummaryrefslogtreecommitdiffstats
path: root/kitty/kitty.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'kitty/kitty.SlackBuild')
-rw-r--r--kitty/kitty.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/kitty/kitty.SlackBuild b/kitty/kitty.SlackBuild
index a34d9d7..08348be 100644
--- a/kitty/kitty.SlackBuild
+++ b/kitty/kitty.SlackBuild
@@ -8,6 +8,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20261023 danix: source /etc/profile.d/go.sh so the build uses
+# google-go-lang instead of gcc-go's gccgo /usr/bin/go.
# 20260922 danix: update for v0.49.0, fetch sources from upstream GitHub
# releases, drop librsync from REQUIRES (upstream now uses
# its own rsync implementation with libxxhash, which ships
@@ -77,6 +79,10 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
sed -i 's,-O3,-O2,g' setup.py
+# gcc-go installs a gccgo /usr/bin/go (go1.18) that can't parse kitty's
+# go.mod; google-go-lang's profile script puts the real toolchain first.
+[ -r /etc/profile.d/go.sh ] && . /etc/profile.d/go.sh
+
# The -Wl,-s makes the linker strip the binaries.
# --ignore-compiler-warnings is needed to turn off -Werror.