diff options
author | Sven Greb | 2020-11-13 09:19:18 +0100 |
---|---|---|
committer | Sven Greb | 2020-11-13 09:19:18 +0100 |
commit | 088fd674cb16dad52f281ff4af3d6c584840e04e (patch) | |
tree | 62b6aab95ecc800c40c5d935d7a101500b837924 /PKGBUILD | |
parent | af57e047e4cc7f6708efdfdf24a072ba341161b8 (diff) | |
download | aur-088fd674cb16dad52f281ff4af3d6c584840e04e.tar.gz |
Build in PIE mode
Build the executable in "Position-independent" build mode [1].
See the Go "-buildmode" flag documentation for more details:
https://golang.org/cmd/go/#hdr-Build_modes
[1]: https://en.wikipedia.org/wiki/Position-independent_code
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -36,6 +36,7 @@ build() { go build \ -trimpath \ + -buildmode=pie \ -ldflags "-X \"github.com/magefile/mage/mage.timestamp=$build_date\" \ -X \"github.com/magefile/mage/mage.commitHash=$git_commit_hash\" \ -X \"github.com/magefile/mage/mage.gitTag=$git_tag\" \ |