Module: sip-router Branch: master Commit: d4f5465efae12c0ef66cb519ece3b3558b10ea5f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d4f5465e...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@voipembedded.com Date: Sun Dec 2 14:42:19 2012 -0500
pua_bla: fix cross-compilation
---
modules_k/pua_bla/Makefile | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/modules_k/pua_bla/Makefile b/modules_k/pua_bla/Makefile index f3149c3..4b2ae54 100755 --- a/modules_k/pua_bla/Makefile +++ b/modules_k/pua_bla/Makefile @@ -4,9 +4,18 @@ include ../../Makefile.defs auto_gen= NAME=pua_bla.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