Revert "hugo: work around link error on arm64"

This reverts commit 3534efbcab.

Workaroud is no longer required after go-1.18-2
This commit is contained in:
Jeremy Drake
2022-03-28 17:54:37 -07:00
parent f36a491cf9
commit ca2b8531b7

View File

@@ -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
}