]> code.ossystems Code Review - openembedded-core.git/commitdiff
sqlite: build position-independent code
authorRoss Burton <ross.burton@intel.com>
Thu, 1 Dec 2016 14:56:23 +0000 (14:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Dec 2016 08:30:01 +0000 (08:30 +0000)
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>
meta/recipes-support/sqlite/sqlite3.inc

index 5bff33b8515052b1cb3f69b907a8eff4117851f9..80424c9cd6c1918028e0a904159b616f3adcafdf 100644 (file)
@@ -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"