mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	add cgo option to Makefile (#2171)
This commit is contained in:
		
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user