mirror of
https://github.com/cheat/cheat.git
synced 2026-03-07 03:03:32 +01: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:
1
Makefile
1
Makefile
@@ -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