From c1cb4a1e72fed3218e64322c28b6a478fad19470 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 12 Jun 2013 04:28:43 +0200 Subject: [PATCH] sqlite: enable mmap support Signed-off-by: Stephan Raue --- packages/databases/sqlite/build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/databases/sqlite/build b/packages/databases/sqlite/build index 7ec9b3f7e9..2e92d02cf4 100755 --- a/packages/databases/sqlite/build +++ b/packages/databases/sqlite/build @@ -45,6 +45,14 @@ # - sqlite3_table_column_metadata() CFLAGS="$CFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1" +# This macro sets the default limit on the amount of memory that will be used for +# memory-mapped I/O for each open database file. If the N is zero, then memory +# mapped I/O is disabled by default. This compile-time limit and the +# SQLITE_MAX_MMAP_SIZE can be modified at start-time using the +# sqlite3_config(SQLITE_CONFIG_MMAP_SIZE) call, or at run-time using the +# mmap_size pragma. + CFLAGS="$CFLAGS -DSQLITE_DEFAULT_MMAP_SIZE=268435456" + cd $PKG_BUILD ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \