blob: 3d1551574edd40f98c8002d6046db14b5f6a3dfe [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From da08f5ec5e553bd43f92a0b0f7476179b0b74502 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Changqing Li <changqing.li@windriver.com>
Brad Bishop26bdd442019-08-16 17:08:17 -04003Date: Wed, 26 Jun 2019 11:49:33 +0800
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004Subject: [PATCH] dlm: fix compile error since xml2-config should not be used
5
6xml2-config is disabled, so change Makefile to use pkgconfig
7to find libxml2.
8
Brad Bishop26bdd442019-08-16 17:08:17 -04009Upstream-Status: Inappropriate [oe-specific]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010
11Signed-off-by: Changqing Li <changqing.li@windriver.com>
Andrew Geissler87f5cff2022-09-30 13:13:31 -050012
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013---
14 fence/Makefile | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/fence/Makefile b/fence/Makefile
Andrew Geissler87f5cff2022-09-30 13:13:31 -050018index 2b080468..ff2eda3f 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019--- a/fence/Makefile
20+++ b/fence/Makefile
Andrew Geissler87f5cff2022-09-30 13:13:31 -050021@@ -18,12 +18,12 @@ CFLAGS += -D_GNU_SOURCE -O2 -ggdb \
Brad Bishop26bdd442019-08-16 17:08:17 -040022 -fstack-clash-protection -Wl,-z,now
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023
Brad Bishop26bdd442019-08-16 17:08:17 -040024 CFLAGS += -fPIE -DPIE
25-CFLAGS += `xml2-config --cflags`
26+CFLAGS += `pkg-config libxml-2.0 --cflags`
27 CFLAGS += -I../include
Andrew Geissler87f5cff2022-09-30 13:13:31 -050028 CFLAGS += $(shell pkg-config --cflags pacemaker-fencing)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029
Andrew Geissler87f5cff2022-09-30 13:13:31 -050030 LDFLAGS += -Wl,-z,relro -Wl,-z,defs -pie
Brad Bishop26bdd442019-08-16 17:08:17 -040031-LDFLAGS += `xml2-config --libs`
32+LDFLAGS += `pkg-config libxml-2.0 --libs`
33 LDFLAGS += -ldl
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034
35 all: $(BIN_TARGET)