Merge pull request #283460 from rodarima/fix-pkgs-static-gcc-march

pkgsStatic: Pass hostPlatform.gcc attribute
This commit is contained in:
Aleksana 2024-05-16 21:26:10 +08:00 committed by GitHub
commit cab94ab46e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -281,8 +281,8 @@ let
if stdenv.isLinux
then makeMuslParsedPlatform stdenv.hostPlatform.parsed
else stdenv.hostPlatform.parsed;
} // lib.optionalAttrs (stdenv.hostPlatform.system == "powerpc64-linux") {
gcc.abi = "elfv2";
gcc = lib.optionalAttrs (stdenv.hostPlatform.system == "powerpc64-linux") { abi = "elfv2"; } //
stdenv.hostPlatform.gcc or {};
};
});