From f68ab13e58ed5a9cc62345c9896fcba45a582df0 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 4 Dec 2018 13:00:51 +0100 Subject: [PATCH] changed build flags to static with new go version --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aaf2d22..84b13e9 100644 --- a/Makefile +++ b/Makefile @@ -105,7 +105,7 @@ release-windows: @hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ go install $(GOFLAGS) github.com/karalabe/xgo; \ fi - xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags -static $(LDFLAGS)' -targets 'windows/*' -out sofaraum-client-$(VERSION) . + xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-w -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out sofaraum-client-$(VERSION) . ifeq ($(CI),drone) mv /build/* $(DIST)/binaries endif @@ -115,7 +115,7 @@ release-linux: @hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ go install $(GOFLAGS) github.com/karalabe/xgo; \ fi - xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags -static $(LDFLAGS)' -targets 'linux/*' -out sofaraum-client-$(VERSION) . + xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-w -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out sofaraum-client-$(VERSION) . ifeq ($(CI),drone) mv /build/* $(DIST)/binaries endif