From d0798be396f769e0f6562935e3d36950d75d2876 Mon Sep 17 00:00:00 2001 From: /gray Date: Tue, 2 Jan 2024 23:31:50 +0800 Subject: [PATCH] chore: Build statically linked binary (#402) --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index fbd390f..78df519 100644 --- a/Makefile +++ b/Makefile @@ -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) .