mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 08:37:40 +00:00
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);
|
||||
LDFLAGS = concatStringsSep " " (map (p: "-L${getLib p}/lib") buildInputs);
|
||||
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";
|
||||
"musl" = "-lgcc_eh";
|
||||
}."${stdenv.hostPlatform.libc}" or "");
|
||||
|
Loading…
Reference in New Issue
Block a user