diff --git a/Makefile b/Makefile index 1fbe425b1..e81a701d5 100644 --- a/Makefile +++ b/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