proot: fix static build

This commit is contained in:
Dan Peebles 2016-08-19 21:39:56 +00:00
parent 7bf6e249eb
commit b7b2019e62

View file

@ -12,13 +12,13 @@ stdenv.mkDerivation rec {
owner = "cedric-vincent";
};
buildInputs = [ talloc ];
buildInputs = [ talloc ] ++ stdenv.lib.optional enableStatic stdenv.cc.libc.static;
nativeBuildInputs = [ docutils ];
enableParallelBuilding = true;
preBuild = stdenv.lib.optionalString enableStatic ''
export LDFLAGS="-static -L${talloc}/lib"
export LDFLAGS="-static"
'';
makeFlags = [ "-C src" ];