Skip to content

Commit

Permalink
Fix up the build to work statically.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrouesnel committed Mar 13, 2016
1 parent 04b41ad commit ce8f72b
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 @@ -4,7 +4,7 @@ GO_SRC := $(shell find -type f -name "*.go")
all: vet test p2

p2: $(GO_SRC)
go build -ldflags "-X main.Version=git:$(shell git rev-parse HEAD)" -o p2 .
CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X main.Version=git:$(shell git rev-parse HEAD)" -o p2 .

vet:
go vet .
Expand Down

0 comments on commit ce8f72b

Please sign in to comment.