summaryrefslogtreecommitdiff
path: root/package/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'package/sqlite')
-rw-r--r--package/sqlite/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/sqlite/Makefile b/package/sqlite/Makefile
index 2b6c0fc4a..c9eab7a52 100644
--- a/package/sqlite/Makefile
+++ b/package/sqlite/Makefile
@@ -24,6 +24,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBSQLITE},${PKG_SECTION}))
$(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
CONFIGURE_ENV+= config_BUILD_CC="${CC_FOR_BUILD}" \
config_BUILD_CFLAGS="${CFLAGS_FOR_BUILD}" \
config_TARGET_CC="${TARGET_CC}" \
@@ -32,7 +33,7 @@ CONFIGURE_ENV+= config_BUILD_CC="${CC_FOR_BUILD}" \
config_TARGET_READLINE_LIBS="-L${STAGING_TARGET_DIR}/usr/lib -lreadline -lncurses"
MAKE_FLAGS+= LIBPTHREAD=-lm
-TARGET_CPPFLAGS+= -DSQLITE_SECURE_DELETE=1
+TARGET_CPPFLAGS+= -DSQLITE_SECURE_DELETE=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
libsqlite-install:
${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib