app-misc/zk: Tweak build configs

Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
This commit is contained in:
Nils Freydank 2024-07-28 22:02:08 +02:00
parent 9fe50ce149
commit 6dc5fcab8b
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112

View File

@ -81,11 +81,16 @@ DOCS=(
)
src_compile() {
export CGO_ENABLE=1
# Flags -w, -s: Omit debugging information to reduce binary size,
# see https://golang.org/cmd/link/.
local mygobuildargs=(
-buildmode=pie
-mod readonly
-modcacherw
-ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT} -s -w"
-mod mod -v -work -x
-v -work -x
-tags "fts5"
)