2

Buildroot provide a way to add sqlite to my build configuration but I can't see anywhere that it indicates if the sqlite libs have multi-thread support. How can I tell if the version of the sqlite library included by Builtroot has multi-thread support.

Thanks.

DaveR
  • 1,295
  • 1
  • 13
  • 35

1 Answers1

5

Buildroot's sqlite.mk file contains the following fragment:

ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
SQLITE_CONF_OPTS += --enable-threadsafe
else
SQLITE_CONF_OPTS += --disable-threadsafe
SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0
endif

In other words, if threads are supported, sqlite is built threadsafe.

Arnout
  • 2,927
  • 16
  • 24