]> code.ossystems Code Review - openembedded-core.git/commitdiff
grep: use internal regex library with musl-libc
authorAndre McCurdy <armccurdy@gmail.com>
Tue, 14 Jul 2015 08:30:30 +0000 (01:30 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Jul 2015 14:08:43 +0000 (15:08 +0100)
musl does not have the GNU regex API provided by glibc.

  http://wiki.musl-libc.org/wiki/Functional_differences_from_glibc#Regular_expressions

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/grep/grep_2.5.1a.bb

index 34d081be86f7c4d4f10ffe1e3f2d3b47dbde9cb8..5a2da283276f26201ab2d0f977b5573fbcad14a4 100644 (file)
@@ -23,8 +23,11 @@ SRC_URI[sha256sum] = "38c8a2bb9223d1fb1b10bdd607cf44830afc92fd451ac4cd07619bf92b
 
 inherit autotools gettext texinfo
 
+EXTRA_OECONF_INCLUDED_REGEX = "--without-included-regex"
+EXTRA_OECONF_INCLUDED_REGEX_libc-musl = "--with-included-regex"
+
 EXTRA_OECONF = "--disable-perl-regexp \
-                --without-included-regex"
+                ${EXTRA_OECONF_INCLUDED_REGEX}"
 
 CFLAGS += "-D PROTOTYPES"
 do_configure_prepend () {