From ca2b8531b73b6fbdfd9ce2e2c35baf459d7a1fd5 Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: Mon, 28 Mar 2022 17:54:37 -0700 Subject: [PATCH] Revert "hugo: work around link error on arm64" This reverts commit 3534efbcab89ec1e681343c9cc61c1d34ccc1de9. Workaroud is no longer required after go-1.18-2 --- mingw-w64-hugo/PKGBUILD | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 }