diff options
author | Joel Shapiro | 2019-07-29 12:06:40 -0500 |
---|---|---|
committer | Joel Shapiro | 2019-07-29 12:06:40 -0500 |
commit | 233105f58c13a2b6b7cbac8a311397d3b9712b90 (patch) | |
tree | 6e2c04291d6bbed016cfedeb370f1462226a4bc6 /PKGBUILD | |
parent | c51604c7e8384d7626d377d361e47fc99b782c8a (diff) | |
download | aur-233105f58c13a2b6b7cbac8a311397d3b9712b90.tar.gz |
add proper path trimming flags to PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -6,7 +6,7 @@ pkgname=nvidia-container-toolkit pkgver=1.0.1 _runtime_pkgver=3.1.0 -pkgrel=2 +pkgrel=3 pkgdesc='NVIDIA container runtime toolkit' arch=('x86_64') url='https://github.com/NVIDIA/nvidia-container-runtime' @@ -28,7 +28,13 @@ prepare() { } build() { - GOPATH="${srcdir}/gopath" go install -buildmode=pie -ldflags " -s -w -extldflags=-Wl,-z,now,-z,relro" "$pkgname" + GOPATH="${srcdir}/gopath" go install \ + -buildmode=pie \ + -gcflags "all=-trimpath=${PWD}" \ + -asmflags "all=-trimpath=${PWD}" \ + -ldflags "-extldflags ${LDFLAGS}" \ + "$pkgname" + #-ldflags " -s -w -extldflags=-Wl,-z,now,-z,relro" \ } package() { |