sqlite: added parameter to enable building a static library.
Unfortunately, static builds fail because the package doesn't recognize that libpthread needs to be linked explicitly. I'll fix that ASAP. svn path=/nixpkgs/trunk/; revision=14681
This commit is contained in:
parent
aaf563c7cf
commit
7ddfd954d3
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl, readline}:
|
{stdenv, fetchurl, readline, static ? false}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "sqlite-3.6.10";
|
name = "sqlite-3.6.10";
|
||||||
@ -12,7 +12,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [readline];
|
buildInputs = [readline];
|
||||||
|
|
||||||
configureFlags = "--disable-static --with-readline-inc=-I${readline}/include";
|
configureFlags = ''
|
||||||
|
${if static then "--disable-shared --enable-static" else "--disable-static"}
|
||||||
|
--with-readline-inc=-I${readline}/include
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
gcc -L$out/lib -I$out/include tool/genfkey.c -lsqlite3 -o $out/bin/genfkey
|
gcc -L$out/lib -I$out/include tool/genfkey.c -lsqlite3 -o $out/bin/genfkey
|
||||||
|
Loading…
x
Reference in New Issue
Block a user