cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH dlm-tool 1/4] fence: make pkg-config binary as passable make var
@ 2023-04-11 14:49 Alexander Aring
  2023-04-11 14:49 ` [Cluster-devel] [PATCH dlm-tool 2/4] fence: move pkg-config fail to bin target Alexander Aring
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alexander Aring @ 2023-04-11 14:49 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-14 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-11 14:49 [Cluster-devel] [PATCH dlm-tool 1/4] fence: make pkg-config binary as passable make var Alexander Aring
2023-04-11 14:49 ` [Cluster-devel] [PATCH dlm-tool 2/4] fence: move pkg-config fail to bin target Alexander Aring
2023-04-11 14:49 ` [Cluster-devel] [PATCH dlm-tool 3/4] dlm_controld: " Alexander Aring
2023-04-11 14:49 ` [Cluster-devel] [PATCH dlm-tool 4/4] dlm_controld: use pkg-config to find corosync libs Alexander Aring
2023-04-14 15:06 ` [Cluster-devel] [PATCH dlm-tool 1/4] fence: make pkg-config binary as passable make var Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).