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

Ovidiu Sas osas at voipembedded.com
Sat Dec 1 07:35:44 CET 2012


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

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Sat Dec  1 01:24:24 2012 -0500

xmlops: fix cross compilation

---

 modules/xmlops/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/xmlops/Makefile b/modules/xmlops/Makefile
index e1e35bc..a55c4a1 100644
--- a/modules/xmlops/Makefile
+++ b/modules/xmlops/Makefile
@@ -9,7 +9,9 @@ auto_gen=
 NAME=xmlops.so
 LIBS=
 
+ifeq ($(CROSS_COMPILE),)
 XML2CFG=$(shell which xml2-config)
+endif
 
 ifneq ($(XML2CFG),)
 
@@ -18,7 +20,7 @@ ifneq ($(XML2CFG),)
 
 else
 
-	DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 \
+	DEFS+=-I$(LOCALBASE)/include/libxml2 \
 		-I$(LOCALBASE)/include
 	LIBS+=-L$(LOCALBASE)/lib -lxml2
 




More information about the sr-dev mailing list