Module: sip-router Branch: master Commit: e5a49d909d582fe601cabbccf4f9ce2efa814414 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e5a49d90...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@voipembedded.com Date: Sun Dec 2 14:47:33 2012 -0500
pua_reginfo: fix cross-compilation
---
modules_k/pua_reginfo/Makefile | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/modules_k/pua_reginfo/Makefile b/modules_k/pua_reginfo/Makefile index bd70a73..b6d8e40 100644 --- a/modules_k/pua_reginfo/Makefile +++ b/modules_k/pua_reginfo/Makefile @@ -10,9 +10,17 @@ auto_gen= NAME=pua_reginfo.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