[sr-dev] git:master: carrierroute: fix cross-compilation

Ovidiu Sas osas at voipembedded.com
Mon Dec 3 19:01:05 CET 2012


Module: sip-router
Branch: master
Commit: f9c0980c4f85d8b728eb36e6b5768173750c6964
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f9c0980c4f85d8b728eb36e6b5768173750c6964

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at 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)




More information about the sr-dev mailing list