[oe] [meta-oe][PATCH] snappy: modify cmake variable to generate shared library
Hongzhi.Song
hongzhi.song at windriver.com
Wed Sep 12 12:09:10 UTC 2018
FILES_${PN}-xxx under packages-split/ depend on FILES_${PN}.
But the FILES_${PN} is empty. This is because snappy doesn't
generate shared library by default.
So we should modify cmake variable to generate shared library.
Signed-off-by: Hongzhi.Song <hongzhi.song at windriver.com>
---
meta-oe/recipes-extended/snappy/snappy_1.1.7.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
index 70223be49..9f37c5fc2 100644
--- a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
+++ b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
@@ -20,3 +20,6 @@ inherit cmake pkgconfig
PACKAGECONFIG ??= ""
PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
TARGET_CFLAGS += "-fPIC"
+
+EXTRA_OECMAKE += '-DBUILD_SHARED_LIBS="ON" \
+ '
--
2.11.0
More information about the Openembedded-devel
mailing list