From 4da2036535667006c97777440c2561c1c80ca19c Mon Sep 17 00:00:00 2001 From: Brennan Vincent Date: Tue, 12 Nov 2024 19:56:30 -0500 Subject: [PATCH] Set CGO_ENABLED in build --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8423dfb4b9..5369d9ccfc 100644 --- a/Makefile +++ b/Makefile @@ -14,10 +14,10 @@ crossbuild: release --snapshot --clean --skip=publish --verbose build: - go build -o parca-agent -buildvcs=false -ldflags="-extldflags=-static" -tags osusergo,netgo + CGO_ENABLED=1 go build -o parca-agent -buildvcs=false -ldflags="-extldflags=-static" -tags osusergo,netgo build-debug: - go build -o parca-agent-debug -buildvcs=false -ldflags="-extldflags=-static" -tags osusergo,netgo -gcflags "all=-N -l" + CGO_ENABLED=1 go build -o parca-agent-debug -buildvcs=false -ldflags="-extldflags=-static" -tags osusergo,netgo -gcflags "all=-N -l" snap: crossbuild cp ./dist/metadata.json snap/local/metadata.json