From a1d8d70461821e580e932e3c1a44d0999d1b3a06 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Sat, 3 Aug 2019 10:23:58 +1200 Subject: [PATCH] LDFLAGS --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e6b514d..b536deb 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ TAG=`git describe --tags` VERSION ?= `git describe --tags` -LDFLAGS=-ldflags "-s -extldflags \"--static\" -w -X main.version=${VERSION}" +LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" build = echo "\n\nBuilding $(1)-$(2)" && GOOS=$(1) GOARCH=$(2) go build ${LDFLAGS} -o dist/goptimize_${VERSION}_$(1)_$(2) \ && bzip2 dist/goptimize_${VERSION}_$(1)_$(2)