We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab73469 + 8dc1947 commit 87f3848Copy full SHA for 87f3848
Makefile
@@ -2,7 +2,7 @@ ifndef VERSION_REF
2
VERSION_REF ?= $(shell git describe --tags --always --dirty="-dev")
3
endif
4
5
-LDFLAGS := -ldflags='-s -w -X "main.VersionRef=$(VERSION_REF)"'
+LDFLAGS := -ldflags='-linkmode "external" -extldflags "-static" -s -w -X "main.VersionRef=$(VERSION_REF)"'
6
export GOFLAGS := -trimpath
7
8
GOFILES = $(shell find . -iname '*.go' | grep -v -e vendor -e _modules -e _cache -e /data/)
0 commit comments