[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3769/8267] sqlite: build position-independent code



commit 7db7950367bdd38936d23f5b38097c2e95c6ca60
Author: Ross Burton <ross burton intel com>
Date:   Thu Dec 1 14:56:23 2016 +0000

    sqlite: build position-independent code
    
    pseudo links against this and uses PIC, so some toolchain combinations will
    refuse to link against sqlite unless it is also PIC.
    
    (From OE-Core rev: 6a58e12d19c539deac9e90679a68438497a42fa4)
    
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/recipes-support/sqlite/sqlite3.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
index 5bff33b..80424c9 100644
--- a/meta/recipes-support/sqlite/sqlite3.inc
+++ b/meta/recipes-support/sqlite/sqlite3.inc
@@ -31,6 +31,8 @@ EXTRA_OECONF = " \
     --disable-static-shell \
 "
 
+CFLAGS_append = " -fPIC"
+
 # pread() is in POSIX.1-2001 so any reasonable system must surely support it
 BUILD_CFLAGS += "-DUSE_PREAD"
 TARGET_CFLAGS += "-DUSE_PREAD"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]