diff --git a/mingw-w64-hugo/PKGBUILD b/mingw-w64-hugo/PKGBUILD index c5118e9e33..e5cb6cf50c 100644 --- a/mingw-w64-hugo/PKGBUILD +++ b/mingw-w64-hugo/PKGBUILD @@ -4,7 +4,7 @@ _realname=hugo pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgver=0.93.2 -pkgrel=2 +pkgrel=3 pkgdesc='A Fast and Flexible Static Site Generator built with love by bep, spf13 and friends in Go. (mingw-w64)' arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') @@ -25,12 +25,8 @@ build() { export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GO_LDFLAGS="-s -w" - export GOFLAGS="-trimpath -mod=readonly -modcacherw" - # work around a link error in aarch64 - # .debug_frame+1MB: addpesym: could not map .debug_frame+1MB symbol with non .text or .rdata or .data section - if [[ "${CARCH}" != "aarch64" ]]; then - GOFLAGS+=" -ldflags=-linkmode=external" - fi + export GOFLAGS="-trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external" + go build }