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

grep: enable optional pcre integration

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Gustavo Zacarias 11 жил өмнө
parent
commit
0f03606fdb

+ 6 - 0
package/grep/grep.mk

@@ -18,6 +18,12 @@ GREP_CONF_ENV += LIBS=-liconv
 GREP_DEPENDENCIES += libiconv
 GREP_DEPENDENCIES += libiconv
 endif
 endif
 
 
+# link with pcre if enabled
+ifeq ($(BR2_PACKAGE_PCRE),y)
+GREP_CONF_OPT += --enable-perl-regexp
+GREP_DEPENDENCIES += pcre
+endif
+
 # Full grep preferred over busybox grep
 # Full grep preferred over busybox grep
 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 GREP_DEPENDENCIES += busybox
 GREP_DEPENDENCIES += busybox