[sr-dev] git:master: presence_xml: fix cross-compilation
Ovidiu Sas
osas at voipembedded.com
Sun Dec 2 20:40:14 CET 2012
Module: sip-router
Branch: master
Commit: d749894cae84112b4ffcc47d385d877961787a46
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d749894cae84112b4ffcc47d385d877961787a46
Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: Sun Dec 2 14:35:15 2012 -0500
presence_xml: fix cross-compilation
---
modules_k/presence_xml/Makefile | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules_k/presence_xml/Makefile b/modules_k/presence_xml/Makefile
index 3663410..531f511 100644
--- a/modules_k/presence_xml/Makefile
+++ b/modules_k/presence_xml/Makefile
@@ -6,19 +6,17 @@ auto_gen=
NAME=presence_xml.so
LIBS=
+ifeq ($(CROSS_COMPILE),)
XML2CFG=$(shell which xml2-config)
+endif
ifneq ($(XML2CFG),)
-
DEFS += $(shell $(XML2CFG) --cflags )
LIBS += $(shell $(XML2CFG) --libs)
-
else
-
- DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 \
+ DEFS+=-I$(LOCALBASE)/include/libxml2 \
-I$(LOCALBASE)/include
LIBS+=-L$(LOCALBASE)/lib -lxml2
-
endif
DEFS+=-DKAMAILIO_MOD_INTERFACE
More information about the sr-dev
mailing list