summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2013-11-04 09:49:44 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-11-04 21:46:56 (GMT)
commitbd56cd6b4cc75511ffacfe020a8de3c1aad44fc9 (patch)
tree5891f0a8f870f3333756d009cec86680dcf78396
parentc4ea640455a67ff4e355c286462ae15e7eb13f74 (diff)
downloadbuildroot-bd56cd6b4cc75511ffacfe020a8de3c1aad44fc9.tar.gz
buildroot-bd56cd6b4cc75511ffacfe020a8de3c1aad44fc9.tar.bz2
sqlite: Disable dynamic extention if static library is seleted
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/sqlite/sqlite.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk
index 5fc1e9e..c20e782 100644
--- a/package/sqlite/sqlite.mk
+++ b/package/sqlite/sqlite.mk
@@ -42,6 +42,10 @@ SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)"
SQLITE_CONF_OPT = \
--localstatedir=/var
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+SQLITE_CONF_OPT += --enable-dynamic-extensions=no
+endif
+
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
SQLITE_CONF_OPT += --enable-threadsafe
else