diff options
author | John Ramsden | 2020-09-25 18:27:58 -0700 |
---|---|---|
committer | John Ramsden | 2020-09-25 18:27:58 -0700 |
commit | 36b703438b08422edf6b997623412073636bb141 (patch) | |
tree | 83d231e7951b30fb320776b9d23c76954488c1de | |
parent | 06f47d12d934c40c16ca3e38f9247c4cdf728cb4 (diff) | |
download | aur-36b703438b08422edf6b997623412073636bb141.tar.gz |
Add linkmode=external
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = zrepl pkgdesc = One-stop ZFS backup & replication solution pkgver = 0.3.0 - pkgrel = 2 + pkgrel = 3 url = https://zrepl.github.io/ arch = x86_64 license = MIT @@ -2,7 +2,7 @@ pkgname=zrepl pkgver=0.3.0 -pkgrel=2 +pkgrel=3 pkgdesc='One-stop ZFS backup & replication solution' arch=('x86_64') url='https://zrepl.github.io/' @@ -19,13 +19,14 @@ build() { export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" GO_LDFLAGS="-X github.com/zrepl/zrepl/version.zreplVersion=${zrepl_version}" cd "${pkgname}-${pkgver}" go build \ - -ldflags "${GO_LDFLAGS} -extldflags ${LDFLAGS}" \ + -ldflags "${GO_LDFLAGS} -linkmode=external -extldflags ${LDFLAGS}" \ -o "${pkgname}" . } |