summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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) \