From 3b4627f988e0f5fac4a481349267567ebeddcada Mon Sep 17 00:00:00 2001 From: cn Date: Sat, 15 Dec 2018 20:44:52 +0100 Subject: [PATCH] module: disable cgo for easier cross-compiling --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b695eec..8f142eb 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,8 @@ test: build .PHONY: cmd/munin-miflora/munin-miflora cmd/munin-miflora/munin-miflora: - cd cmd/munin-miflora && go build && cd ../.. + cd cmd/munin-miflora && CGO_ENABLED=0 go build && cd ../.. .PHONY: cmd/munin-miflora/munin-miflora-gatt cmd/munin-miflora/munin-miflora-gatt: - cd cmd/munin-miflora-gatt && go build && cd ../.. + cd cmd/munin-miflora-gatt && CGO_ENABLED=0 go build && cd ../..