From 0aeda3217d80c6896bc924e5f73a8bccd167de05 Mon Sep 17 00:00:00 2001 From: ltrk2 <107155950+ltrk2@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:39:15 -0500 Subject: [PATCH] Link dependencies arising from CGO dynamically (#2) --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b3b079d8..ebfa61e8 100644 --- a/Makefile +++ b/Makefile @@ -41,8 +41,7 @@ REVISION ?= $(BRANCH)-$(COMMIT_SHORT_SHA) LDFLAGS := -X go.opentelemetry.io/ebpf-profiler/vc.version=$(VERSION) \ -X go.opentelemetry.io/ebpf-profiler/vc.revision=$(REVISION) \ - -X go.opentelemetry.io/ebpf-profiler/vc.buildTimestamp=$(BUILD_TIMESTAMP) \ - -extldflags=-static + -X go.opentelemetry.io/ebpf-profiler/vc.buildTimestamp=$(BUILD_TIMESTAMP) GO_TAGS := osusergo,netgo EBPF_FLAGS := @@ -109,8 +108,8 @@ TEST_INTEGRATION_BINARY_DIRS := tracer processmanager/ebpf support integration-test-binaries: generate ebpf $(foreach test_name, $(TEST_INTEGRATION_BINARY_DIRS), \ - (go test -ldflags='-extldflags=-static' -trimpath -c \ - -tags $(GO_TAGS),static_build,integration \ + (go test -trimpath -c \ + -tags $(GO_TAGS),integration \ -o ./support/$(subst /,_,$(test_name)).test \ ./$(test_name)) || exit ; \ )