From a96c1d644aa5b760062ee7e7b9fadd0f2ac7a693 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 11 Dec 2017 23:22:11 -0500 Subject: [PATCH] fix: turn off CGO for all go builds --- plugins/config/Makefile | 4 ++-- plugins/network/Makefile | 6 +++--- plugins/repo/Makefile | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/config/Makefile b/plugins/config/Makefile index 74d8ef36e..0d2932927 100644 --- a/plugins/config/Makefile +++ b/plugins/config/Makefile @@ -14,12 +14,12 @@ build-in-docker: clean build: commands subcommands commands: **/**/commands.go - go build $(GO_ARGS) -o commands src/commands/commands.go + CGO_ENABLED=0 go build $(GO_ARGS) -o commands src/commands/commands.go subcommands: $(SUBCOMMANDS) subcommands/%: src/subcommands/*/%.go - go build $(GO_ARGS) -o $@ $< + CGO_ENABLED=0 go build $(GO_ARGS) -o $@ $< clean: rm -rf commands subcommands diff --git a/plugins/network/Makefile b/plugins/network/Makefile index a29d16d79..bb25a4fb7 100644 --- a/plugins/network/Makefile +++ b/plugins/network/Makefile @@ -14,12 +14,12 @@ build-in-docker: clean build: commands subcommands triggers commands: **/**/commands.go - go build $(GO_ARGS) -o commands src/commands/commands.go + CGO_ENABLED=0 go build $(GO_ARGS) -o commands src/commands/commands.go subcommands: $(SUBCOMMANDS) subcommands/%: src/subcommands/*/%.go - go build $(GO_ARGS) -o $@ $< + CGO_ENABLED=0 go build $(GO_ARGS) -o $@ $< clean: rm -rf commands subcommands network-* install post-create post-delete @@ -30,4 +30,4 @@ src-clean: triggers: $(TRIGGERS) triggers/%: src/triggers/*/%.go - go build $(GO_ARGS) -o $@ $< + CGO_ENABLED=0 go build $(GO_ARGS) -o $@ $< diff --git a/plugins/repo/Makefile b/plugins/repo/Makefile index 3940279d1..f8ef7c600 100644 --- a/plugins/repo/Makefile +++ b/plugins/repo/Makefile @@ -14,12 +14,12 @@ build-in-docker: clean build: commands subcommands commands: **/**/commands.go - go build $(GO_ARGS) -o commands src/commands/commands.go + CGO_ENABLED=0 go build $(GO_ARGS) -o commands src/commands/commands.go subcommands: $(SUBCOMMANDS) subcommands/%: src/subcommands/*/%.go - go build $(GO_ARGS) -o $@ $< + CGO_ENABLED=0 go build $(GO_ARGS) -o $@ $< clean: rm -rf commands subcommands