[oe] [meta-oe][PATCH] snappy: add -fPIC flags

Dengke Du dengke.du at windriver.com
Tue Aug 28 07:39:54 UTC 2018


Let the libsnappy.a be position independent code, so other packages can use it
to make shared PIC library, such as ceph.

Signed-off-by: Dengke Du <dengke.du at windriver.com>
---
 meta-oe/recipes-extended/snappy/snappy_1.1.7.bb | 1 +
 1 file changed, 1 insertion(+)

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 6f1978a..70223be 100644
--- a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
+++ b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
@@ -19,3 +19,4 @@ inherit cmake pkgconfig
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
+TARGET_CFLAGS += "-fPIC"
-- 
2.7.4




More information about the Openembedded-devel mailing list