1
0
Fork 0

build: add musl variant for the full executable

This commit is contained in:
Arthur K. 2026-01-19 18:38:33 +03:00
parent a0e16d2c4f
commit 180a9fdbca
Signed by: wzray
GPG key ID: B97F30FDC4636357

View file

@ -1,13 +1,19 @@
all: hivemind hivemind-lite all: hivemind hivemind-musl hivemind-lite
hivemind: hivemind:
go build -o build/hivemind ./cmd/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: hivemind-lite:
CC=musl-gcc go build \ CC=musl-gcc go build \
-ldflags="-linkmode external -extldflags '-static'" \ -ldflags="-linkmode external -extldflags '-static'" \
-o build/hivemind-lite \ -o build/hivemind-lite \
./cmd/hivemind-lite ./cmd/hivemind-lite
.phony: all hivemind hivemind-lite .phony: all hivemind hivemind-musl hivemind-lite