[sr-dev] git:master: xcap_server: fix cross-compilation

Ovidiu Sas osas at voipembedded.com
Sun Dec 2 21:14:23 CET 2012


Module: sip-router
Branch: master
Commit: e1faa0591c05482be95eb81016c37b9a5be57d14
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e1faa0591c05482be95eb81016c37b9a5be57d14

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Sun Dec  2 15:09:24 2012 -0500

xcap_server: fix cross-compilation

---

 modules_k/xcap_server/Makefile |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/modules_k/xcap_server/Makefile b/modules_k/xcap_server/Makefile
index 0f79ee9..62e3404 100644
--- a/modules_k/xcap_server/Makefile
+++ b/modules_k/xcap_server/Makefile
@@ -8,21 +8,17 @@
 include ../../Makefile.defs
 auto_gen=
 NAME=xcap_server.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 \
-		-I$(LOCALBASE)/include
+	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