From d2e5e9655910c22eca791568a91ec6b493ebd3c1 Mon Sep 17 00:00:00 2001 From: Maytham Alsudany Date: Sun, 14 Apr 2024 11:56:03 +0300 Subject: [PATCH] Use $(PKG_CONFIG) to call pkgconf rather than invoking directly in finding jemalloc Signed-off-by: Maytham Alsudany --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 8ca30a6df..3289911ee 100644 --- a/src/Makefile +++ b/src/Makefile @@ -268,8 +268,8 @@ endif ifeq ($(MALLOC),jemalloc) FINAL_CFLAGS+= -DUSE_JEMALLOC ifeq ($(USE_SYSTEM_JEMALLOC),yes) - FINAL_CFLAGS+= -DUSE_SYSTEM_JEMALLOC $(shell pkgconf --cflags jemalloc) - FINAL_LIBS := $(shell pkgconf --libs jemalloc) $(FINAL_LIBS) + FINAL_CFLAGS+= -DUSE_SYSTEM_JEMALLOC $(shell $(PKG_CONFIG) --cflags jemalloc) + FINAL_LIBS := $(shell $(PKG_CONFIG) --libs jemalloc) $(FINAL_LIBS) else DEPENDENCY_TARGETS+= jemalloc FINAL_CFLAGS+= -I../deps/jemalloc/include