build: add musl variant for the full executable
This commit is contained in:
parent
a0e16d2c4f
commit
180a9fdbca
1 changed files with 8 additions and 2 deletions
10
Makefile
10
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue