From 7b9c1dbd28218c68e923f5226705f2cb10b44390 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Mon, 15 Mar 2021 19:24:41 -0700 Subject: [PATCH] pkgs/top-level/stage: force elfv2 on static powerpc64-linux The staging logic reconstructs the target platform, discarding powerpc64's custom gcc.abi = elfv2 setup. Musl requires ELFv2 ABI so this should be set unconditionally here. --- pkgs/top-level/stage.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix index 8fc460ca5227..77f3cc677f65 100644 --- a/pkgs/top-level/stage.nix +++ b/pkgs/top-level/stage.nix @@ -227,6 +227,8 @@ let }.${stdenv.hostPlatform.parsed.abi.name} or lib.systems.parse.abis.musl; }; + } // lib.optionalAttrs (stdenv.hostPlatform.system == "powerpc64-linux") { + gcc.abi = "elfv2"; }; }); };