Skip to content
Snippets Groups Projects
Commit 20af4e44 authored by Goutham Veeramachaneni's avatar Goutham Veeramachaneni Committed by Tom Wilkie
Browse files

Make binaries actually static (#53)

https://github.com/grafana/loki/pull/49 broke promtail with
standard_init_linux.go:178: exec user process caused "no such file or directory"

From https://medium.com/@diogok/on-golang-static-binaries-cross-compiling-and-plugins-1aed33499671


CGO_ENABLED=0 makes it static, afaics

Signed-off-by: default avatarGoutham Veeramachaneni <gouthamve@gmail.com>
parent 8fa94614
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ $(EXES) $(PROTO_GOS) $(YACC_GOS) lint test shell check-generated-files: loki-bui
else
$(EXES): loki-build-image/$(UPTODATE)
go build $(GO_FLAGS) -o $@ ./$(@D)
CGO_ENABLED=0 go build $(GO_FLAGS) -o $@ ./$(@D)
$(NETGO_CHECK)
%.pb.go: loki-build-image/$(UPTODATE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment