Use $(PKG_CONFIG) to call pkgconf rather than invoking directly in finding jemalloc

Signed-off-by: Maytham Alsudany <maytha8thedev@gail.com>
This commit is contained in:
Maytham Alsudany 2024-04-14 11:56:03 +03:00 committed by Drew DeVault
parent bd55c900ac
commit d2e5e96559

View File

@ -268,8 +268,8 @@ endif
ifeq ($(MALLOC),jemalloc) ifeq ($(MALLOC),jemalloc)
FINAL_CFLAGS+= -DUSE_JEMALLOC FINAL_CFLAGS+= -DUSE_JEMALLOC
ifeq ($(USE_SYSTEM_JEMALLOC),yes) ifeq ($(USE_SYSTEM_JEMALLOC),yes)
FINAL_CFLAGS+= -DUSE_SYSTEM_JEMALLOC $(shell pkgconf --cflags jemalloc) FINAL_CFLAGS+= -DUSE_SYSTEM_JEMALLOC $(shell $(PKG_CONFIG) --cflags jemalloc)
FINAL_LIBS := $(shell pkgconf --libs jemalloc) $(FINAL_LIBS) FINAL_LIBS := $(shell $(PKG_CONFIG) --libs jemalloc) $(FINAL_LIBS)
else else
DEPENDENCY_TARGETS+= jemalloc DEPENDENCY_TARGETS+= jemalloc
FINAL_CFLAGS+= -I../deps/jemalloc/include FINAL_CFLAGS+= -I../deps/jemalloc/include