Just in case it helps anyone, the following diff fixed the build for me:
diff --git i/PKGBUILD w/PKGBUILD
index 8325d60..7a9e36b 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -20,8 +20,8 @@ sha256sums=('c0fb3df21a12d87c050317f68cc410b39d40f4af77192688956db67dc036a674')
build() {
export GOPATH="$srcdir"/gopath
export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_CFLAGS="$(echo "${CFLAGS}" | sed 's/-flto//g')"
+ export CGO_CXXFLAGS="$(echo "${CXXFLAGS}"| sed 's/-flto//g')"
export CGO_LDFLAGS="${LDFLAGS}"
cd "$srcdir/$pkgname-$pkgver"
Pinned Comments
jguer commented on 2024-03-16 08:06 (UTC)
This will happen if you upgrade pacman and yay separately If you have this error you need to manually recompile yay
jguer commented on 2019-04-16 14:08 (UTC)
I cannot delete the spam comments appearing regularly in this page, which has also led me to disable notifications from here. I remind that the best way to receive support or report a problem is through the Upstream URL.