summary refs log tree commit diff
path: root/pkgs/stdenv/linux/make-bootstrap-tools.nix
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2021-01-29 20:08:42 -0800
committerRyan Burns <rtburns@protonmail.com>2021-01-30 12:34:30 -0800
commit76fc6d2870ff4e79e227c409dfae9378d4b12573 (patch)
tree52a93b91e1c07857385c68cd9dc28268e03e958b /pkgs/stdenv/linux/make-bootstrap-tools.nix
parentc17abf8111471184446370e0761736b2519b04fd (diff)
downloadnixpkgs-76fc6d2870ff4e79e227c409dfae9378d4b12573.tar
nixpkgs-76fc6d2870ff4e79e227c409dfae9378d4b12573.tar.gz
nixpkgs-76fc6d2870ff4e79e227c409dfae9378d4b12573.tar.bz2
nixpkgs-76fc6d2870ff4e79e227c409dfae9378d4b12573.tar.lz
nixpkgs-76fc6d2870ff4e79e227c409dfae9378d4b12573.tar.xz
nixpkgs-76fc6d2870ff4e79e227c409dfae9378d4b12573.tar.zst
nixpkgs-76fc6d2870ff4e79e227c409dfae9378d4b12573.zip
bootstrap-tools-cross: add powerpc64-linux
Also check for powerpc64-linux-elfv1, which does not support musl.
Diffstat (limited to 'pkgs/stdenv/linux/make-bootstrap-tools.nix')
-rw-r--r--pkgs/stdenv/linux/make-bootstrap-tools.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/stdenv/linux/make-bootstrap-tools.nix b/pkgs/stdenv/linux/make-bootstrap-tools.nix
index 25cde589a92..d99edc962b5 100644
--- a/pkgs/stdenv/linux/make-bootstrap-tools.nix
+++ b/pkgs/stdenv/linux/make-bootstrap-tools.nix
@@ -19,7 +19,8 @@ in with pkgs; rec {
   tarMinimal = gnutar.override { acl = null; };
 
   busyboxMinimal = busybox.override {
-    useMusl = !stdenv.targetPlatform.isRiscV;
+    useMusl = with stdenv.targetPlatform; !isRiscV &&
+                (system == "powerpc64-linux" -> parsed.abi.name != "elfv1");
     enableStatic = true;
     enableMinimal = true;
     extraConfig = ''