add cgo option to Makefile (#2171)
This commit is contained in:
parent
8a9c6174fc
commit
cbcc38bcb5
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -7,12 +7,13 @@ VERBOSE:=-v
|
|||
GOPATH?=$(HOME)/go
|
||||
PRESUBMIT:=core coremain plugin test request
|
||||
MAKEPWD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||
CGO_ENABLED:=0
|
||||
|
||||
all: coredns
|
||||
|
||||
.PHONY: coredns
|
||||
coredns: $(CHECKS)
|
||||
CGO_ENABLED=0 $(SYSTEM) go build $(VERBOSE) -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=$(GITCOMMIT)" -o $(BINARY)
|
||||
CGO_ENABLED=$(CGO_ENABLED) $(SYSTEM) go build $(VERBOSE) -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=$(GITCOMMIT)" -o $(BINARY)
|
||||
|
||||
.PHONY: check
|
||||
check: presubmit core/zplugin.go core/dnsserver/zdirectives.go godeps
|
||||
|
|
Loading…
Add table
Reference in a new issue