From d0446e40cd97d4a0cf80ca03be130f8832f56283 Mon Sep 17 00:00:00 2001 From: zhyee <1054948153@qq.com> Date: Mon, 25 Dec 2023 22:49:18 +0800 Subject: [PATCH] append '-Wl,-rpath' to CXXFLAGS for locating shared libraries --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 544655951..7eb222d02 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ ifeq ($(OS),Darwin) endif else CFLAGS += -static - CXXFLAGS += -Wl,-z,defs + CXXFLAGS += -Wl,-z,defs -Wl,-rpath=/app/async-profiler/build ifeq ($(MERGE),true) CXXFLAGS += -fwhole-program endif