]> code.ossystems Code Review - openembedded-core.git/commitdiff
libpcre: Allow building 16 and 32bit libpcre versions
authorPascal Bach <pascal.bach@siemens.com>
Fri, 18 Sep 2015 06:43:42 +0000 (08:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Sep 2015 14:20:10 +0000 (15:20 +0100)
This change allows selecting the 8, 16 or 32 bit version via PACKAGECONFIG.
By default only the 8bit version is built, this corresponds to the old behavior.

Some packages like Qt5 require the 16 bit version of libpcre.
After this change the corresponding layer can easily enable the version
needed via .bbappend.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/libpcre/libpcre_8.37.bb

index bcfc9e9afaa206b175445c4dc666f9fcfd954e18..1880639a279376a569646596f2b3e7707e5801b1 100644 (file)
@@ -22,6 +22,11 @@ S = "${WORKDIR}/pcre-${PV}"
 PROVIDES += "pcre"
 DEPENDS += "bzip2 zlib"
 
+PACKAGECONFIG ??= "pcre8"
+
+PACKAGECONFIG[pcre8] = "--enable-pcre8,--disable-pcre8"
+PACKAGECONFIG[pcre16] = "--enable-pcre16,--disable-pcre16"
+PACKAGECONFIG[pcre32] = "--enable-pcre32,--disable-pcre32"
 PACKAGECONFIG[pcretest-readline] = "--enable-pcretest-libreadline,--disable-pcretest-libreadline,readline,"
 
 BINCONFIG = "${bindir}/pcre-config"