app-misc/zk: Tweak build configs
Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
This commit is contained in:
parent
9fe50ce149
commit
6dc5fcab8b
@ -81,11 +81,16 @@ DOCS=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
export CGO_ENABLE=1
|
||||||
|
|
||||||
# Flags -w, -s: Omit debugging information to reduce binary size,
|
# Flags -w, -s: Omit debugging information to reduce binary size,
|
||||||
# see https://golang.org/cmd/link/.
|
# see https://golang.org/cmd/link/.
|
||||||
local mygobuildargs=(
|
local mygobuildargs=(
|
||||||
|
-buildmode=pie
|
||||||
|
-mod readonly
|
||||||
|
-modcacherw
|
||||||
-ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT} -s -w"
|
-ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT} -s -w"
|
||||||
-mod mod -v -work -x
|
-v -work -x
|
||||||
-tags "fts5"
|
-tags "fts5"
|
||||||
)
|
)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user