mirror of
https://github.com/cheat/cheat.git
synced 2026-09-09 11:18:16 +02:00
build: produce static binaries with CGO_ENABLED=0
Eliminates glibc version mismatch errors when running release binaries on systems with older glibc versions. Closes #744 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
2d50c6a6eb
commit
5eee02bc40
@@ -27,6 +27,7 @@ ZIP := zip -m
|
|||||||
docker_image := cheat-devel:latest
|
docker_image := cheat-devel:latest
|
||||||
|
|
||||||
# build flags
|
# build flags
|
||||||
|
export CGO_ENABLED := 0
|
||||||
BUILD_FLAGS := -ldflags="-s -w" -mod vendor -trimpath
|
BUILD_FLAGS := -ldflags="-s -w" -mod vendor -trimpath
|
||||||
GOBIN :=
|
GOBIN :=
|
||||||
TMPDIR := /tmp
|
TMPDIR := /tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user