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

Ovidiu Sas osas at voipembedded.com
Sun Dec 2 22:07:24 CET 2012


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

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Sun Dec  2 16:00:17 2012 -0500

lcr: fix cross-compilation

---

 modules/lcr/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/lcr/Makefile b/modules/lcr/Makefile
index 6a37cc8..70d6400 100644
--- a/modules/lcr/Makefile
+++ b/modules/lcr/Makefile
@@ -8,20 +8,20 @@ include ../../Makefile.defs
 auto_gen=
 NAME=lcr.so
 
+ifeq ($(CROSS_COMPILE),)
 BUILDER = $(shell which pcre-config)
+endif
 
 ifeq ($(BUILDER),)
-	PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
-	-I/usr/sfw/include
-	PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
-	-L/opt/lib -lpcre
+	PCREDEFS=-I$(LOCALBASE)/include
+	PCRELIBS=-L$(LOCALBASE)/lib -lpcre
 else
 	PCREDEFS = $(shell pcre-config --cflags)
 	PCRELIBS = $(shell pcre-config --libs)
 endif
 
 DEFS+=$(PCREDEFS)
-LIBS=$(PCRELIBS)
+LIBS+=$(PCRELIBS)
 
 DEFS+=-DKAMAILIO_MOD_INTERFACE
 




More information about the sr-dev mailing list