Merge pull request #174285 from tobim/pkgsStatic/fix-python
This commit is contained in:
commit
af02d617c7
@ -289,7 +289,7 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
CPPFLAGS = concatStringsSep " " (map (p: "-I${getDev p}/include") buildInputs);
|
CPPFLAGS = concatStringsSep " " (map (p: "-I${getDev p}/include") buildInputs);
|
||||||
LDFLAGS = concatStringsSep " " (map (p: "-L${getLib p}/lib") buildInputs);
|
LDFLAGS = concatStringsSep " " (map (p: "-L${getLib p}/lib") buildInputs);
|
||||||
LIBS = "${optionalString (!stdenv.isDarwin) "-lcrypt"}";
|
LIBS = "${optionalString (!stdenv.isDarwin) "-lcrypt"}";
|
||||||
NIX_LDFLAGS = lib.optionalString stdenv.cc.isGNU ({
|
NIX_LDFLAGS = lib.optionalString (stdenv.cc.isGNU && !stdenv.hostPlatform.isStatic) ({
|
||||||
"glibc" = "-lgcc_s";
|
"glibc" = "-lgcc_s";
|
||||||
"musl" = "-lgcc_eh";
|
"musl" = "-lgcc_eh";
|
||||||
}."${stdenv.hostPlatform.libc}" or "");
|
}."${stdenv.hostPlatform.libc}" or "");
|
||||||
|
Loading…
Reference in New Issue
Block a user