2
0
Эх сурвалжийг харах

lcr: fix cross-compilation

Ovidiu Sas 12 жил өмнө
parent
commit
10fc575cc3
1 өөрчлөгдсөн 5 нэмэгдсэн , 5 устгасан
  1. 5 5
      modules/lcr/Makefile

+ 5 - 5
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