summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/sqlite
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-12-01 14:56:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-16 10:23:22 +0000
commit7db7950367bdd38936d23f5b38097c2e95c6ca60 (patch)
tree654d9d62627e99e3df740696d67e72d4fe01c36c /meta/recipes-support/sqlite
parentb010c327c7759cb55490128b92c3cd0bf1fc8fdf (diff)
downloadpoky-7db7950367bdd38936d23f5b38097c2e95c6ca60.tar.gz
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>
Diffstat (limited to 'meta/recipes-support/sqlite')
-rw-r--r--meta/recipes-support/sqlite/sqlite3.inc2
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 = " \
31 --disable-static-shell \ 31 --disable-static-shell \
32" 32"
33 33
34CFLAGS_append = " -fPIC"
35
34# pread() is in POSIX.1-2001 so any reasonable system must surely support it 36# pread() is in POSIX.1-2001 so any reasonable system must surely support it
35BUILD_CFLAGS += "-DUSE_PREAD" 37BUILD_CFLAGS += "-DUSE_PREAD"
36TARGET_CFLAGS += "-DUSE_PREAD" 38TARGET_CFLAGS += "-DUSE_PREAD"