[oe-commits] [openembedded-core] 11/28: sqlite: build position-independent code

git at git.openembedded.org git at git.openembedded.org
Fri Dec 16 08:41:03 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 6a58e12d19c539deac9e90679a68438497a42fa4
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: 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.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-support/sqlite/sqlite3.inc | 2 ++
 1 file changed, 2 insertions(+)

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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list