aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
authordengke.du@windriver.com <dengke.du@windriver.com>2018-08-28 15:39:54 +0800
committerKhem Raj <raj.khem@gmail.com>2018-08-28 09:36:28 -0700
commita8c59cfdee69f5923551b374746094ed4a8ff813 (patch)
treec8df166f2b27e098b538770fdb9d2111164510e1 /meta-oe/recipes-extended
parentbae481e9331f1357660df1720221134fefabc526 (diff)
downloadmeta-openembedded-a8c59cfdee69f5923551b374746094ed4a8ff813.tar.gz
snappy: add -fPIC flags
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@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r--meta-oe/recipes-extended/snappy/snappy_1.1.7.bb1
1 files changed, 1 insertions, 0 deletions
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 6f1978a070..70223be490 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"