From dd1a6f8ab15e854c4eccc452c8d5e969d04d2866 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 4 Nov 2009 13:07:27 +0000 Subject: [PATCH] pkgs/development/libraries/sqlite/default.nix: enable amalgamation build Sqlite has a build mode called "amalgamation" that gathers all 90+ source code files into a single sqlite3.c file before compiling the library. Building sqlite this way reportedly gives a 5-10% performance gain because the compiler can perform more sophisticated optimizations. svn path=/nixpkgs/trunk/; revision=18092 --- pkgs/development/libraries/sqlite/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index 83bf8ba4af5d..2f5ed3f5d427 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -13,9 +13,10 @@ stdenv.mkDerivation rec { buildInputs = [readline tcl]; configureFlags = '' + CFLAGS=-O3 --enable-load-extension ${if static then "--disable-shared --enable-static" else ""} - --disable-amalgamation + --enable-amalgamation --enable-threadsafe --disable-cross-thread-connections --disable-tcl