From 94e7da11ec673a5234d5d47a2d12168575a01dff Mon Sep 17 00:00:00 2001 From: Tiago Rodrigues Date: Fri, 17 Nov 2023 16:52:06 -0500 Subject: [PATCH] use pkg-config to get libcapstone config --- tracy-edit/build/unix/build.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tracy-edit/build/unix/build.mk b/tracy-edit/build/unix/build.mk index dffcb6cc..85fb7528 100644 --- a/tracy-edit/build/unix/build.mk +++ b/tracy-edit/build/unix/build.mk @@ -1,9 +1,8 @@ CFLAGS += CXXFLAGS := $(CFLAGS) -std=gnu++17 DEFINES += -DTRACY_NO_STATISTICS -INCLUDES := -I../../../capstone/include/capstone -LIBS += -lcapstone -lpthread -LDFLAGS := -L../../../capstone +INCLUDES := $(shell pkg-config --cflags capstone) +LIBS += $(shell pkg-config --libs capstone) -lpthread PROJECT := tracy-edit IMAGE := $(PROJECT)-$(BUILD)