From e6beae32cd45ea0057e1a5bc5e4b3f2a098a1a1e Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Fri, 7 Jun 2019 03:37:43 -0400 Subject: static, pie build --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index df77b36..598ff00 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ PREFIX?=/usr/local _INSTDIR=$(PREFIX) BINDIR?=$(_INSTDIR)/getwtxt -GOFLAGS?= +GOFLAGS?=-tags netgo \ + -ldflags '-extldflags "-static"' \ + -buildmode pie getwtxt: getwtxt.go go.mod go.sum go build $(GOFLAGS) \ -- cgit 1.4.1-2-gfad0