From b66eaf4586cbacdbac8b539bf9060852a14e62ca Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 27 Mar 2016 01:36:25 +0100 Subject: [PATCH] sqlite: enable fdatasync. sqlite needs to explicitly enable fdatasync support. As our main target (Linux) has decent support for fdatasync (hopefully) we can enable support and gain slightly better performance. --- srcpkgs/sqlite/template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srcpkgs/sqlite/template b/srcpkgs/sqlite/template index 5d8564c3273..875903cfe4b 100644 --- a/srcpkgs/sqlite/template +++ b/srcpkgs/sqlite/template @@ -1,8 +1,8 @@ # Template build file for 'sqlite'. pkgname=sqlite version=3.11.1 -revision=1 -_amalgamationver=3110100 +revision=3 +_amalgamationver=$(printf "%d%02d%02d00\n" ${version//./ }) wrksrc="sqlite-autoconf-${_amalgamationver}" build_style=gnu-configure configure_args="--enable-threadsafe --enable-readline --enable-dynamic-extensions" @@ -15,7 +15,8 @@ distfiles="http://sqlite.org/2016/sqlite-autoconf-${_amalgamationver}.tar.gz" checksum=533ff1d0271c2e666f01591271cef01a31648563affa0c95e80ef735077d4377 CFLAGS="-DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_JSON1" - +# explicitly enable fdatasync +CFLAGS+=" -DHAVE_FDATASYNC" disable_parallel_build=yes sqlite-devel_package() {