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