From 80df5ccd417ade035e84cebd173612a642a3780f Mon Sep 17 00:00:00 2001 From: Alexander Aring Date: Apr 11 2023 14:34:37 +0000 Subject: fence: make pkg-config binary as passable make var This patch defines PKG_CONFIG make var which could be overwrite by the user like it's the case for dlm_controld Makefile. --- diff --git a/fence/Makefile b/fence/Makefile index ee4dfb8..894f639 100644 --- a/fence/Makefile +++ b/fence/Makefile @@ -19,7 +19,10 @@ CFLAGS += -D_GNU_SOURCE -O2 -ggdb \ CFLAGS += -fPIE -DPIE CFLAGS += -I../include -CFLAGS += $(shell pkg-config --cflags pacemaker-fencing) + +PKG_CONFIG ?= pkg-config + +CFLAGS += $(shell $(PKG_CONFIG) --cflags pacemaker-fencing) LDFLAGS += -Wl,-z,relro -Wl,-z,now -pie LDFLAGS += -ldl