Module: sip-router
Branch: master
Commit: b19700f17de38e1bffd93bbbd897044e0c696d40
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b19700f…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Sat Dec 1 23:25:50 2012 -0500
presence_dialoginfo: fix cross-compilation
---
modules_k/presence_dialoginfo/Makefile | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules_k/presence_dialoginfo/Makefile
b/modules_k/presence_dialoginfo/Makefile
index 96e1a1d..8a29b06 100644
--- a/modules_k/presence_dialoginfo/Makefile
+++ b/modules_k/presence_dialoginfo/Makefile
@@ -4,21 +4,18 @@
include ../../Makefile.defs
auto_gen=
NAME=presence_dialoginfo.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 \
+ DEFS+=-I$(LOCALBASE)/include/libxml2 \
-I$(LOCALBASE)/include
LIBS+=-L$(LOCALBASE)/lib -lxml2
-
endif
DEFS+=-DKAMAILIO_MOD_INTERFACE