summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-07 03:37:43 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-08 02:29:30 -0400
commite6beae32cd45ea0057e1a5bc5e4b3f2a098a1a1e (patch)
treef06111b520660d99c6b7144ee03aa90bba64f2a9 /Makefile
parent78f4d8a6c1f8c41543dd5c1522ec1100a52a1283 (diff)
downloadgetwtxt-e6beae32cd45ea0057e1a5bc5e4b3f2a098a1a1e.tar.gz
static, pie build
Diffstat (limited to 'Makefile')
-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) \