Skip to content

Commit

Permalink
Build a static binary to be used on other distros (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: Benoit Donneaux <[email protected]>
  • Loading branch information
btlogy authored Jun 13, 2024
1 parent 4513156 commit 7f291e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GOBINDIR=$(GOPATH)/bin
# commands
GOCMD=go
GOINSTALL=$(GOCMD) install
GOBUILD=$(GOCMD) build
GOBUILD=$(GOCMD) build -ldflags '-linkmode external -w -extldflags "-static"'
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
Expand Down Expand Up @@ -77,4 +77,4 @@ lintdeps:

.PHONY: modtidy
modtidy:
$(GOMOD) tidy
$(GOMOD) tidy

0 comments on commit 7f291e8

Please sign in to comment.