diff options
author | orhun | 2020-11-25 18:47:01 +0300 |
---|---|---|
committer | orhun | 2020-11-25 18:47:01 +0300 |
commit | e7a1bee6ac4de5195d8031c7dd6a8d03c6a9a119 (patch) | |
tree | a388defab5f94a36a80b13f5377c25b92bbdc6f3 | |
parent | 9904e1f5f60beb7f81ee727c9eb46ed12d8d370c (diff) | |
download | aur-e7a1bee6ac4de5195d8031c7dd6a8d03c6a9a119.tar.gz |
upgpkg: ali-git 0.5.3.r4.g04b67c9-1
Respect go flags for PIE and RELRO
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 10 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = ali-git pkgdesc = Generate HTTP load and plot the results in real-time (git) - pkgver = 0.5.3.r0.g6101998 - pkgrel = 2 + pkgver = 0.5.3.r4.g04b67c9 + pkgrel = 1 url = https://github.com/nakabonne/ali arch = x86_64 license = MIT @@ -2,9 +2,9 @@ # https://github.com/orhun/pkgbuilds pkgname=ali-git +pkgver=0.5.3.r4.g04b67c9 +pkgrel=1 pkgdesc="Generate HTTP load and plot the results in real-time (git)" -pkgver=0.5.3.r0.g6101998 -pkgrel=2 arch=('x86_64') url="https://github.com/nakabonne/ali" license=('MIT') @@ -21,12 +21,12 @@ pkgver() { build() { cd "${pkgname%-git}" - go get -d ./... - go build \ - -gcflags "all=-trimpath=$PWD" \ - -asmflags "all=-trimpath=$PWD" \ - -ldflags "-extldflags $LDFLAGS" \ - -o "${pkgname%-git}" . + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o "${pkgname%-git}" . } package() { |