[arch-commits] Commit in browserpass/trunk (PKGBUILD)
Maxim Baz
maximbaz at archlinux.org
Sun Feb 21 16:10:57 UTC 2021
Date: Sunday, February 21, 2021 @ 16:10:57
Author: maximbaz
Revision: 867757
browserpass: go 1.16 rebuild
to be investigated why building via make results in partial RELRO
Modified:
browserpass/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-21 16:10:38 UTC (rev 867756)
+++ PKGBUILD 2021-02-21 16:10:57 UTC (rev 867757)
@@ -4,7 +4,7 @@
_name=browserpass-native
pkgname=browserpass
pkgver=3.0.7
-pkgrel=1
+pkgrel=2
pkgdesc="Native host app for Browserpass, browser extension for zx2c4's pass (password manager)"
arch=('x86_64')
url="https://github.com/${pkgname}/${_name}"
@@ -26,7 +26,12 @@
build() {
cd "${_name}-${pkgver}"
- make "${pkgname}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external"
+ go build -o "${pkgname}"
}
check() {
More information about the arch-commits
mailing list