From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Tue, 11 Apr 2023 10:49:13 -0400 Subject: [Cluster-devel] [PATCH dlm-tool 1/4] fence: make pkg-config binary as passable make var Message-ID: <20230411144916.1231886-1-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch defines PKG_CONFIG make var which could be overwrite by the user like it's the case for dlm_controld Makefile. --- fence/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fence/Makefile b/fence/Makefile index ee4dfb88..894f6396 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 -- 2.31.1