Module: sip-router
Branch: master
Commit: f9c0980c4f85d8b728eb36e6b5768173750c6964
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f9c0980…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Mon Dec 3 12:55:25 2012 -0500
carrierroute: fix cross-compilation
---
modules/carrierroute/Makefile | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/modules/carrierroute/Makefile b/modules/carrierroute/Makefile
index 0396a72..d4bc7bc 100644
--- a/modules/carrierroute/Makefile
+++ b/modules/carrierroute/Makefile
@@ -9,15 +9,17 @@ include ../../Makefile.defs
auto_gen=
NAME=carrierroute.so
+ifeq ($(CROSS_COMPILE),)
BUILDER = $(shell which confuse-config)
+endif
ifeq ($(BUILDER),)
+ ifeq ($(CROSS_COMPILE),)
BUILDER = $(shell which pkg-config)
+ endif
ifeq ($(BUILDER),)
- CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
- -I/usr/sfw/include
- CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
- -L/opt/lib -lconfuse
+ CONFUSEDEFS=-I$(LOCALBASE)/include
+ CONFUSELIBS=-L$(LOCALBASE)/lib -lconfuse
else
CONFUSEDEFS = $(shell pkg-config --cflags libconfuse)
CONFUSELIBS = $(shell pkg-config --libs libconfuse)