Module: sip-router
Branch: master
Commit: 46ce25ceda08916a355328682768699b6cff4d36
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=46ce25c…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Sat Dec 1 23:24:06 2012 -0500
presence: fix cross-compilation
---
modules_k/presence/Makefile | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules_k/presence/Makefile b/modules_k/presence/Makefile
index 752b01e..ff490c7 100644
--- a/modules_k/presence/Makefile
+++ b/modules_k/presence/Makefile
@@ -4,21 +4,18 @@
include ../../Makefile.defs
auto_gen=
NAME=presence.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