proot: fix static build
This commit is contained in:
parent
7bf6e249eb
commit
b7b2019e62
@ -12,13 +12,13 @@ stdenv.mkDerivation rec {
|
|||||||
owner = "cedric-vincent";
|
owner = "cedric-vincent";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ talloc ];
|
buildInputs = [ talloc ] ++ stdenv.lib.optional enableStatic stdenv.cc.libc.static;
|
||||||
nativeBuildInputs = [ docutils ];
|
nativeBuildInputs = [ docutils ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
preBuild = stdenv.lib.optionalString enableStatic ''
|
preBuild = stdenv.lib.optionalString enableStatic ''
|
||||||
export LDFLAGS="-static -L${talloc}/lib"
|
export LDFLAGS="-static"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "-C src" ];
|
makeFlags = [ "-C src" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user