diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-07 03:37:43 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-08 02:29:30 -0400 |
commit | e6beae32cd45ea0057e1a5bc5e4b3f2a098a1a1e (patch) | |
tree | f06111b520660d99c6b7144ee03aa90bba64f2a9 | |
parent | 78f4d8a6c1f8c41543dd5c1522ec1100a52a1283 (diff) | |
download | getwtxt-e6beae32cd45ea0057e1a5bc5e4b3f2a098a1a1e.tar.gz |
static, pie build
-rw-r--r-- | Makefile | 4 |
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) \ |