aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2018-09-30 21:35:14 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-09-30 23:49:23 +0200
commitd3143409ac99609c160bd3d53250bcebe09fe975 (patch)
treea35191d36a309c35132a2c5a3ac10fd4b4fd0b26
parent296b8bc64a69ae635d4b88b12d7c776c9b3b0df1 (diff)
downloadbuildroot-d3143409ac99609c160bd3d53250bcebe09fe975.tar.gz
buildroot-d3143409ac99609c160bd3d53250bcebe09fe975.tar.bz2
sqlite: fix build without threads
If threads are not available, set SQLITE_THREADSAFE to 0. Indeed, since version 3.25.0, the following line: THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0 has been removed from configure.ac As a result, SQLITE_THREADSAFE will be set to a default value of 1 even if --disable-threadsafe is set Fixes: - http://autobuild.buildroot.org/results/70b1582edcb787746e4483e80b27f86ac781f0fa Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/sqlite/sqlite.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk
index cb4bd58c47..34a0b9538e 100644
--- a/package/sqlite/sqlite.mk
+++ b/package/sqlite/sqlite.mk
@@ -54,6 +54,7 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
SQLITE_CONF_OPTS += --enable-threadsafe
else
SQLITE_CONF_OPTS += --disable-threadsafe
+SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0
endif
ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy)