浏览代码

regex: fix cross-compilation

Ovidiu Sas 12 年之前
父节点
当前提交
50f4cd86cc
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      modules_k/regex/Makefile

+ 5 - 5
modules_k/regex/Makefile

@@ -4,20 +4,20 @@ include ../../Makefile.defs
 auto_gen=
 NAME=regex.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