revert: drop reference to CGO_ENABLED completely

This commit is contained in:
Jose Diaz-Gonzalez
2017-12-12 00:09:36 -05:00
parent 64252b282a
commit 5d5ede2b85
3 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
include ../../common.mk
GO_ARGS ?= -a
CGO_ENABLED ?= 1
SUBCOMMANDS = subcommands/gc subcommands/purge-cache
build-in-docker: clean
@@ -14,12 +14,12 @@ build-in-docker: clean
build: commands subcommands
commands: **/**/commands.go
CGO_ENABLED=$(CGO_ENABLED) go build $(GO_ARGS) -o commands src/commands/commands.go
go build $(GO_ARGS) -o commands src/commands/commands.go
subcommands: $(SUBCOMMANDS)
subcommands/%: src/subcommands/*/%.go
CGO_ENABLED=$(CGO_ENABLED) go build $(GO_ARGS) -o $@ $<
go build $(GO_ARGS) -o $@ $<
clean:
rm -rf commands subcommands