Browse Source

dialplan: fix cross-compilation

Ovidiu Sas 12 năm trước cách đây
mục cha
commit
7abf33373b
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      modules/dialplan/Makefile

+ 4 - 4
modules/dialplan/Makefile

@@ -6,13 +6,13 @@ include ../../Makefile.defs
 auto_gen=
 auto_gen=
 NAME=dialplan.so
 NAME=dialplan.so
 
 
+ifeq ($(CROSS_COMPILE),)
 BUILDER = $(shell which pcre-config)
 BUILDER = $(shell which pcre-config)
+endif
 
 
 ifeq ($(BUILDER),)
 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
 else
 	PCREDEFS = $(shell pcre-config --cflags)
 	PCREDEFS = $(shell pcre-config --cflags)
 	PCRELIBS = $(shell pcre-config --libs)
 	PCRELIBS = $(shell pcre-config --libs)