From baf91658d6c00657480c417f193fd4c7118f3ace Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 17 Oct 2016 17:43:56 +0100 Subject: [PATCH] Fix static linking flags --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c68e2b3..8f58161f 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ NETGO_CHECK=@strings $@ | grep cgo_stub\\\.go >/dev/null || { \ echo " sudo go install -tags netgo std"; \ false; \ } -BUILD_FLAGS=-i -ldflags "-extldflags \"-static\" -X main.version=$(WEAVE_VERSION)" -tags netgo +BUILD_FLAGS=-i -ldflags "-linkmode external -extldflags -static -X main.version=$(WEAVE_VERSION)" -tags netgo PACKAGE_BASE=$(shell go list -e ./)