Skip to content

Commit

Permalink
Build fabio without CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Oct 11, 2019
1 parent 8d252a1 commit 98ca641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -56,11 +56,11 @@ gofmt:

# linux builds a linux binary
linux:
GOOS=linux GOARCH=amd64 go build -tags netgo $(GOFLAGS)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -tags netgo $(GOFLAGS)

# install runs go install
install:
go install -mod=vendor $(GOFLAGS)
CGO_ENABLED=0 go install -trimpath -mod=vendor $(GOFLAGS)

# pkg builds a fabio.tar.gz package with only fabio in it
pkg: build test
Expand Down

0 comments on commit 98ca641

Please sign in to comment.