diff options
author | Ross Burton <ross.burton@intel.com> | 2016-12-01 14:56:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 08:30:01 +0000 |
commit | 6a58e12d19c539deac9e90679a68438497a42fa4 (patch) | |
tree | ce4d824f541b352ab6f86edabdbbcc4dda0088ea | |
parent | e9114bdd8a83b88f59526780910c49e3092fdd57 (diff) | |
download | openembedded-core-6a58e12d19c539deac9e90679a68438497a42fa4.tar.gz openembedded-core-6a58e12d19c539deac9e90679a68438497a42fa4.tar.bz2 openembedded-core-6a58e12d19c539deac9e90679a68438497a42fa4.zip |
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@intel.com>
-rw-r--r-- | 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 5bff33b851..80424c9cd6 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" |