Commit cbcc38bc authored by Chris O'Haver's avatar Chris O'Haver Committed by GitHub

add cgo option to Makefile (#2171)

parent 8a9c6174
...@@ -7,12 +7,13 @@ VERBOSE:=-v ...@@ -7,12 +7,13 @@ VERBOSE:=-v
GOPATH?=$(HOME)/go GOPATH?=$(HOME)/go
PRESUBMIT:=core coremain plugin test request PRESUBMIT:=core coremain plugin test request
MAKEPWD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) MAKEPWD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
CGO_ENABLED:=0
all: coredns all: coredns
.PHONY: coredns .PHONY: coredns
coredns: $(CHECKS) 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 .PHONY: check
check: presubmit core/zplugin.go core/dnsserver/zdirectives.go godeps check: presubmit core/zplugin.go core/dnsserver/zdirectives.go godeps
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment