package/sqlite: fix build issue when the toolchain has no thread support
PATCH 1/1 package/sqlite: fix build issue when the toolchain has no thread support
If the toolchain does not have thread support enabled, the following error will occur:
Support threadsafe operation? yes
Checking libs for pthread_create...no
Error: Missing required pthread bits
In this case, we can provide the --disable-threadsafe option, so that the autosetup script will skip checking for threadsafe support.
Fixes:
https://autobuild.buildroot.org/results/c9bb0d0128507302910a69a0aaec95942449afb6/
https://autobuild.buildroot.org/results/b28181095400c26d49425c58c35aee79e6fff8cd/
Signed-off-by Scott Fan <[email protected]>
--- package/sqlite/sqlite.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/sqlite/sqlite.mk +4 -0
@@ -42,6 +42,10 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),) +SQLITE_CONF_OPTS += --disable-threadsafe +endif + ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline SQLITE_CFLAGS += -DHAVE_READLINE=1
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot