aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3956af1..994382f 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ linux-amd64: build/tarpit-linux-amd64
windows-amd64: build/tarpit-windows-amd64.exe
build/tarpit-linux-amd64: $(SRC)
- GOOS=linux GOARCH=amd64 go build -o "$@"
+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o "$@" -ldflags '-extldflags "-static"'
build/tarpit-windows-amd64.exe: $(SRC)
GOOS=windows GOARCH=amd64 go build -o "$@"