Skip to contentSkip to conversation

libconfig: split package for C++

PATCH New Stefano Babic 1 participant 1 message Jan 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libconfig: split package for C++

There is current just one package for libconfig and libconfig++ library. In case footprint matters as an image in initramfs, the C++ binding if not required adds additional dependencies (libstdc++).

This split the packages to let include just what is needed.

---
 meta-oe/recipes-extended/libconfig/libconfig_1.7.2.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-extended/libconfig/libconfig_1.7.2.bb +4 -0
index 148e85ce1..70ea82eb9 100644
@@ -13,3 +13,7 @@ inherit autotools-brokensep pkgconfig
 
 SRC_URI[md5sum] = "6bd98ee3a6e6b9126c82c916d7a9e690"
 SRC_URI[sha256sum] = "7c3c7a9c73ff3302084386e96f903eb62ce06953bb1666235fac74363a16fad9"
+
+PACKAGE_BEFORE_PN = "${PN}++"
+FILES_${PN}++ = "${libdir}/${BPN}++*${SOLIBS}"
+
Signature · 1 line
2.25.1