From 6dc5fcab8be974134ddd3ba00b3ee27a561e6e32 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 28 Jul 2024 22:02:08 +0200 Subject: [PATCH] app-misc/zk: Tweak build configs Signed-off-by: Nils Freydank --- app-misc/zk/{zk-0.14.1.ebuild => zk-0.14.1-r1.ebuild} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename app-misc/zk/{zk-0.14.1.ebuild => zk-0.14.1-r1.ebuild} (96%) diff --git a/app-misc/zk/zk-0.14.1.ebuild b/app-misc/zk/zk-0.14.1-r1.ebuild similarity index 96% rename from app-misc/zk/zk-0.14.1.ebuild rename to app-misc/zk/zk-0.14.1-r1.ebuild index 194e394..0fec112 100644 --- a/app-misc/zk/zk-0.14.1.ebuild +++ b/app-misc/zk/zk-0.14.1-r1.ebuild @@ -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" )