File: Don-t-link-dlm_stonith-against-libxml2.patch

package info (click to toggle)
dlm 4.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 900 kB
  • ctags: 1,844
  • sloc: ansic: 13,442; makefile: 297; sh: 83
file content (25 lines) | stat: -rw-r--r-- 718 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@debian.org>
Date: Mon, 19 Dec 2016 22:57:22 +0100
Subject: Don't link dlm_stonith against libxml2

---
 fence/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fence/Makefile b/fence/Makefile
index 504cce8..cc8cc4f 100644
--- a/fence/Makefile
+++ b/fence/Makefile
@@ -30,11 +30,11 @@ BIN_CFLAGS += -D_GNU_SOURCE -O2 -ggdb \
 	-fdiagnostics-show-option \
 
 BIN_CFLAGS += -fPIE -DPIE
+# pacemaker/crm/stonith-ng.h includes libxml/tree.h, so we need this:
 BIN_CFLAGS += `xml2-config --cflags`
 BIN_CFLAGS += -I../include
 
 BIN_LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie
-BIN_LDFLAGS += `xml2-config --libs`
 BIN_LDFLAGS += -ldl
 
 all: $(BIN_TARGET)