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