@@ -12,13 +12,13 @@ stdenv.mkDerivation rec {
1212 owner = "cedric-vincent";
1313 };
1414
15− buildInputs = [ talloc ];
15+ buildInputs = [ talloc ] ++ stdenv.lib.optional enableStatic stdenv.cc.libc.static;
1616 nativeBuildInputs = [ docutils ];
1717
1818 enableParallelBuilding = true;
1919
2020 preBuild = stdenv.lib.optionalString enableStatic ''
21− export LDFLAGS="-static -L${talloc}/lib"
21+ export LDFLAGS="-static"
2222 '';
2323
2424 makeFlags = [ "-C src" ];