aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-17 16:36:02 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-17 16:36:02 +0800
commit59c8de0101132c278cca3382112e2a180e2ab857 (patch)
treede3ad28ea3b0e46563f14dc781aea1cc662f01fa /Makefile
parentstyle.css: Reformat and improve checkbox accessibility (diff)
downloadforge-59c8de0101132c278cca3382112e2a180e2ab857.tar.gz
forge-59c8de0101132c278cca3382112e2a180e2ab857.tar.zst
forge-59c8de0101132c278cca3382112e2a180e2ab857.zip
Makefile: Compile static Go binary
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bda106d..5e4d9f4 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99 -D_GNU_SOURCE
forge: $(filter-out forge,$(wildcard *)) version.go git_hooks_client/*.c git_hooks_client/git_hooks_client
go mod vendor
- go build -o $@
+ CGO_ENABLED=0 go build -o $@ -ldflags '-extldflags "-f no-PIC -static"' -tags 'osusergo netgo static_build' .
git_hooks_client/git_hooks_client: