From: Ross Burton Date: Thu, 1 Dec 2016 14:56:23 +0000 (+0000) Subject: sqlite: build position-independent code X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~23283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a58e12d19c539deac9e90679a68438497a42fa4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc index 5bff33b8515..80424c9cd6c 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"