From 180a9fdbca34fe2e03bf17e58a35e7ed1e81f1c1 Mon Sep 17 00:00:00 2001 From: "Arthur K." Date: Mon, 19 Jan 2026 18:38:33 +0300 Subject: [PATCH] build: add musl variant for the full executable --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9ad8070..71e9610 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,19 @@ -all: hivemind hivemind-lite +all: hivemind hivemind-musl hivemind-lite hivemind: go build -o build/hivemind ./cmd/hivemind +hivemind-musl: + CC=musl-gcc go build \ + -ldflags="-linkmode external -extldflags '-static'" \ + -o build/hivemind-musl \ + ./cmd/hivemind + hivemind-lite: CC=musl-gcc go build \ -ldflags="-linkmode external -extldflags '-static'" \ -o build/hivemind-lite \ ./cmd/hivemind-lite -.phony: all hivemind hivemind-lite +.phony: all hivemind hivemind-musl hivemind-lite