diff options
author | Luis Aranguren | 2018-12-13 19:13:25 +1100 |
---|---|---|
committer | Luis Aranguren | 2018-12-13 19:13:25 +1100 |
commit | 26d4b7755b9d77ba07e2991655505f9f8b410d1d (patch) | |
tree | e21f91e4de44f8b74cb20fefdeb612ed441a8dbd | |
parent | 4baef40a7133b23bbc72aadc76b90fa9071f2aa9 (diff) | |
download | aur-26d4b7755b9d77ba07e2991655505f9f8b410d1d.tar.gz |
added hardening flags for RELRO and PIE
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 4 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = lnd-git pkgdesc = The Lightning Network Daemon, for secure off-chain bitcoin transactions. - pkgver = 0.5.1.beta.160.gdc7c5974 + pkgver = 0.5.1.beta.172.g8c5d6842 pkgrel = 1 url = https://github.com/lightningnetwork/lnd arch = x86_64 @@ -5,7 +5,7 @@ # Upstream: https://github.com/lightningnetwork/lnd pkgname=('lnd-git') -pkgver=0.5.1.beta.160.gdc7c5974 +pkgver=0.5.1.beta.172.g8c5d6842 pkgrel=1 pkgdesc='The Lightning Network Daemon, for secure off-chain bitcoin transactions.' arch=('x86_64') @@ -24,11 +24,10 @@ pkgver() { } build() { - #To do : Add RELRO and PIE cd $pkgname - go build . + go build -buildmode=pie -ldflags -extldflags=-Wl,-z,now,-z,relro . cd cmd/lncli - go build . + go build -buildmode=pie -ldflags -extldflags=-Wl,-z,now,-z,relro . } package() { |