From 2b5ccf8a53489f907116df3158c2354b99497bd1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 24 Oct 2014 11:39:40 +0200 Subject: [PATCH] sqlite: Enable optimization Commit a28940d9d542f3d7f2a5f88c4f2701a1818cf153 changed the SQLite build to use CFLAGS instead of NIX_CFLAGS_COMPILE, but that's really bad because it clobbers the default -O2 flag. So all this time we had an unoptimized SQLite build. (This is one of the reasons why NIX_CFLAGS_COMPILE exists - messing with CFLAGS is almost never a good idea.) --- pkgs/development/libraries/sqlite/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index 0baa72993ba..e1e2be3137b 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation { configureFlags = "--enable-threadsafe"; - CFLAGS = "-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1"; + NIX_CFLAGS_COMPILE = "-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1"; meta = { homepage = http://www.sqlite.org/;