chore: Build statically linked binary (#402)

This commit is contained in:
/gray 2024-01-02 23:31:50 +08:00 committed by GitHub
parent 97cb4909fc
commit d0798be396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,9 @@ BUILD_ARGS := -trimpath -ldflags "-s -w -X github.com/daeuniverse/dae/cmd.Versio
## Begin Dae Build
dae: export GOOS=linux
ifndef CGO_ENABLED
dae: export CGO_ENABLED=0
endif
dae: ebpf
@echo $(CFLAGS)
go build -o $(OUTPUT) $(BUILD_ARGS) .