Module: sip-router Branch: master Commit: 528d518494c73883fd77acd8e438bb16d2de5d3e URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=528d5184...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@voipembedded.com Date: Sun Dec 2 14:38:42 2012 -0500
pua: fix cross-compilation
---
modules_k/pua/Makefile | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/modules_k/pua/Makefile b/modules_k/pua/Makefile index e8ccaea..63f27ed 100644 --- a/modules_k/pua/Makefile +++ b/modules_k/pua/Makefile @@ -6,9 +6,17 @@ auto_gen= NAME=pua.so LIBS=
-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 \ - -I$(LOCALBASE)/include -LIBS+=-L$(LOCALBASE)/lib -lxml2 +ifeq ($(CROSS_COMPILE),) +XML2CFG=$(shell which xml2-config) +endif + +ifneq ($(XML2CFG),) + DEFS += $(shell $(XML2CFG) --cflags ) + LIBS += $(shell $(XML2CFG) --libs) +else + DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include + LIBS+=-L$(LOCALBASE)/lib -lxml2 +endif
DEFS+=-DKAMAILIO_MOD_INTERFACE