Fix static linking flags

This commit is contained in:
Bryan Boreham authored and Adam Harrison committed 2016-10-28 14:51:26 +01:00
1 parent fda035d8d6
commit baf91658d6
1 file changed
+1 -1
+1 -1
View File
@@ -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 ./)