Skip to content

Commit

Permalink
Makefile: Build static binary for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
pothos committed Mar 9, 2023
1 parent 7cc432b commit c62e727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ all: build
.PHONY: build
build:
go build \
-ldflags "-X github.com/kinvolk/lerobot/cli/cmd.version=$(VERSION)" \
-tags osusergo,netgo -ldflags "-linkmode external -extldflags '-static' -s -w -X github.com/kinvolk/lerobot/cli/cmd.version=$(VERSION)" \
-o bin/lerobot cli/main.go

.PHONY: test
Expand Down

0 comments on commit c62e727

Please sign in to comment.