2
0
Эх сурвалжийг харах

utils: Makefile - try to use pkg-config if xml2-config is not found

(cherry picked from commit 02cf454fc601dd3b246a8886ec6d86103ad87a6e)
Daniel-Constantin Mierla 5 жил өмнө
parent
commit
aa5bd6dfa5

+ 6 - 0
src/modules/utils/Makefile

@@ -10,6 +10,12 @@ NAME=utils.so
 
 
 ifeq ($(CROSS_COMPILE),)
 ifeq ($(CROSS_COMPILE),)
 XML2CFG=$(shell which xml2-config)
 XML2CFG=$(shell which xml2-config)
+ifeq ($(XML2CFG),)
+XML2CFG=$(shell \
+	if pkg-config --exists libxml-2.0; then \
+		echo 'pkg-config libxml-2.0'; \
+	fi)
+endif
 endif
 endif
 
 
 ifneq ($(XML2CFG),)
 ifneq ($(XML2CFG),)