From cbcc38bcb539ee6e47b1f47d058db96ebcbcdfc1 Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Tue, 9 Oct 2018 14:36:42 -0400 Subject: [PATCH] add cgo option to Makefile (#2171) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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