Skip to content

Commit

Permalink
statically link binary
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Dec 1, 2016
1 parent b673b7b commit ef9d165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ build: clean
release: clean
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build \
-a -tags netgo \
-ldflags "-X main.Version=$(VERSION) -X main.Name=$(TARGET)" \
-a -installsuffix cgo \
-ldflags "-s -X main.Version=$(VERSION) -X main.Name=$(TARGET)" \
-o bin/$(TARGET) .

clean:
Expand Down

0 comments on commit ef9d165

Please sign in to comment.