From 145e0d9f57f4f67973bddc8908ceacb3131b858f Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Mon, 6 Jul 2015 17:48:04 +0300 Subject: [PATCH] berkeleydb: accommodate threads presence/absence In BerkeleyDB the most convenient implementation of mutexes on Linux is via POSIX mutex, and that requires pthread library. Still it is possible to build (and hopefully use) BerkeleyDB without mutexes. For this we pass "--disable-mutexsupport" during configuration of the package. Fixes: http://autobuild.buildroot.net/results/717f3b37600a56262badc6f7cb64d7949fdacb67/ http://autobuild.buildroot.net/results/80ebf0382992b277fd94743815bbf0c7426a3654/ Signed-off-by: Alexey Brodkin Cc: Yann E. MORIN Cc: Peter Korsgaard Signed-off-by: Thomas Petazzoni --- package/berkeleydb/berkeleydb.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/berkeleydb/berkeleydb.mk b/package/berkeleydb/berkeleydb.mk index 30fc5182ec..e5c11bddcf 100644 --- a/package/berkeleydb/berkeleydb.mk +++ b/package/berkeleydb/berkeleydb.mk @@ -40,6 +40,7 @@ define BERKELEYDB_CONFIGURE_CMDS $(SHARED_STATIC_LIBS_OPTS) \ --with-pic \ --enable-o_direct \ + $(if $(BR2_TOOLCHAIN_HAS_THREADS),--enable-mutexsupport,--disable-mutexsupport) \ ) endef -- 2.30.2