Skip to content

Commit

Permalink
Fix static build
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanhs committed Aug 4, 2015
1 parent 5297e06 commit 7195f4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ check:
rm diff

binary:
go build -a -ldflags "-X main.GITCOMMIT $(GIT_COMMIT)$(GIT_STATUS)" -o ./bin/dlgrab
# static build - https://github.com/golang/go/issues/9344
go build \
-a \
-tags netgo \
-installsuffix cgo \
-ldflags "-X main.GITCOMMIT $(GIT_COMMIT)$(GIT_STATUS)" \
-o ./bin/dlgrab

0 comments on commit 7195f4e

Please sign in to comment.