Skip to contentSkip to conversation

flex: create separate package for libfl

PATCH New Andre McCurdy 1 participant 1 message Mar 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-devtools/flex/flex_2.6.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/flex/flex_2.6.0.bb +4 -0
index a906fe8..b89b751 100644
@@ -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"
 
Signature · 1 line
1.9.1