diff options
author | Cody Schafer | 2020-09-25 20:27:26 -0400 |
---|---|---|
committer | Cody Schafer | 2020-09-25 20:27:26 -0400 |
commit | 07a42f7de7081272c9b9628d817c00e0ce21a40f (patch) | |
tree | 5870e99e3ea0f888e570f50910e0464184b998b1 | |
parent | 7e21016e7674d56920b1ef3c202c91e76cbdd2c2 (diff) | |
download | aur-07a42f7de7081272c9b9628d817c00e0ce21a40f.tar.gz |
update GOFLAGS for current go package guidelines
-rw-r--r-- | PKGBUILD | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ build() { export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" mkdir -p build go build -o build ./cmd/... } |