From 98ca6410cacd5703aa88b34673ed180dacb83543 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Fri, 11 Oct 2019 20:47:43 +0200 Subject: [PATCH] Build fabio without CGO --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cd2f37d9f..d2798e7ae 100644 --- a/Makefile +++ b/Makefile @@ -56,11 +56,11 @@ gofmt: # linux builds a linux binary linux: - GOOS=linux GOARCH=amd64 go build -tags netgo $(GOFLAGS) + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -tags netgo $(GOFLAGS) # install runs go install install: - go install -mod=vendor $(GOFLAGS) + CGO_ENABLED=0 go install -trimpath -mod=vendor $(GOFLAGS) # pkg builds a fabio.tar.gz package with only fabio in it pkg: build test