aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2018-03-05 18:41:57 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-08 10:31:56 -0800
commit1bc6ad19d56498847dc95cce0ea371ba77eff143 (patch)
tree6281c7b0e3b484d8272fb061967884adf6f33965
parentb8ddb0c8d79b969fff40e0fdfbeeef214a338ebe (diff)
downloadopenembedded-core-1bc6ad19d56498847dc95cce0ea371ba77eff143.zip
openembedded-core-1bc6ad19d56498847dc95cce0ea371ba77eff143.tar.gz
openembedded-core-1bc6ad19d56498847dc95cce0ea371ba77eff143.tar.bz2
flex: create separate package for libfl
Target binaries linked with libfl currently generate a runtime dependency on the entire flex package (and therefore m4 and bison too). Copy Debian's approach and create a separate package for libfl. Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-devtools/flex/flex_2.6.0.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/flex/flex_2.6.0.bb b/meta/recipes-devtools/flex/flex_2.6.0.bb
index a906fe8..b89b751 100644
--- a/meta/recipes-devtools/flex/flex_2.6.0.bb
+++ b/meta/recipes-devtools/flex/flex_2.6.0.bb
@@ -43,6 +43,10 @@ do_install_append_class-nativesdk() {
create_wrapper ${D}/${bindir}/flex M4=${M4}
}
+PACKAGES =+ "${PN}-libfl"
+
+FILES_${PN}-libfl = "${libdir}/libfl.so.* ${libdir}/libfl_pic.so.*"
+
RDEPENDS_${PN} += "m4"
RDEPENDS_${PN}-ptest += "bash gawk"