Skip to contentSkip to conversation

sqlite: fix build without threads

PATCH New Fabrice Fontaine 2 participants 2 messages Sep 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 package/sqlite/sqlite.mk | 1 +
 1 file changed, 1 insertion(+)
package/sqlite/sqlite.mk +1 -0
index cb4bd58c47..34a0b9538e 100644
@@ -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)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 sqlite: fix build without threads

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

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

Quoted 4 lines

Fixes:
- http://autobuild.buildroot.org/results/70b1582edcb787746e4483e80b27f86ac781f0fa

Committed, thanks.

Can you please report the issue upstream?

Signature · 1 line
Bye, Peter Korsgaard