revert: re-enable CGO_ENABLED=0

This commit is contained in:
Jose Diaz-Gonzalez
2017-12-11 23:43:59 -05:00
parent a999f9d4e5
commit 228eb9ed7a
3 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
include ../../common.mk
GO_ARGS ?= -a -tags netgo
CGO_ENABLED ?= 1
SUBCOMMANDS = subcommands/export subcommands/get subcommands/set subcommands/unset subcommands/keys subcommands/bundle
build-in-docker: clean
@@ -14,12 +14,12 @@ build-in-docker: clean
build: commands subcommands
commands: **/**/commands.go
CGO_ENABLED=0 go build $(GO_ARGS) -o commands src/commands/commands.go
CGO_ENABLED=$(CGO_ENABLED) go build $(GO_ARGS) -o commands src/commands/commands.go
subcommands: $(SUBCOMMANDS)
subcommands/%: src/subcommands/*/%.go
CGO_ENABLED=0 go build $(GO_ARGS) -o $@ $<
CGO_ENABLED=$(CGO_ENABLED) go build $(GO_ARGS) -o $@ $<
clean:
rm -rf commands subcommands