From c13d50ee171a0719ad3f772f187761360c90c538 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Fri, 29 Nov 2019 18:46:51 +1300 Subject: [PATCH] Statically build binaries via make cross (#1193) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4fa3ba45..5c10dbd8 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ install: # kompile kompose for multiple platforms .PHONY: cross cross: - gox -osarch="darwin/amd64 linux/amd64 linux/arm windows/amd64" -output="bin/kompose-{{.OS}}-{{.Arch}}" $(BUILD_FLAGS) + CGO_ENABLED=0 gox -osarch="darwin/amd64 linux/amd64 linux/arm windows/amd64" -output="bin/kompose-{{.OS}}-{{.Arch}}" $(BUILD_FLAGS) .PHONY: clean clean: