[oe-commits] Pascal Bach : libpcre: Allow building 16 and 32bit libpcre versions

git at git.openembedded.org git at git.openembedded.org
Wed Sep 23 08:56:00 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 6c133405c790d29859d441cc596e6459cb32537f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6c133405c790d29859d441cc596e6459cb32537f

Author: Pascal Bach <pascal.bach at siemens.com>
Date:   Fri Sep 18 08:43:42 2015 +0200

libpcre: Allow building 16 and 32bit libpcre versions

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 at siemens.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-support/libpcre/libpcre_8.37.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-support/libpcre/libpcre_8.37.bb b/meta/recipes-support/libpcre/libpcre_8.37.bb
index bcfc9e9..1880639 100644
--- a/meta/recipes-support/libpcre/libpcre_8.37.bb
+++ b/meta/recipes-support/libpcre/libpcre_8.37.bb
@@ -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"



More information about the Openembedded-commits mailing list