1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/lib/systems
Ryan Burns 72b3badb61 lib.systems: add powerpc64-linux
PPC64 supports two ABIs: ELF v1 and v2.

ELFv1 is historically what GCC and most packages expect, but this is
changing because musl outright does not work with ELFv1. So any distro
which uses musl must use ELFv2. Many other platforms are moving to ELFv2
too, such as FreeBSD (as of v13) and Gentoo (as of late 2020).

Since we use musl extensively, let's default to ELFv2.

Nix gives us the power to specify this declaratively for the entire
system, so ELFv1 is not dropped entirely. It can be specified explicitly
in the target config, e.g. "powerpc64-unknown-linux-elfv1". Otherwise the
default is "powerpc64-unknown-linux-elfv2". For musl,
"powerpc64-unknown-linux-musl" must use elfv2 internally to function.
2021-01-30 12:34:24 -08:00
..
architectures.nix lib: Clean up how linux and gcc config is specified 2021-01-23 10:01:28 -05:00
default.nix lib/systems: fix linuxArch for power + riscv 2021-01-25 17:57:05 -08:00
doubles.nix lib.systems: add powerpc64-linux 2021-01-30 12:34:24 -08:00
examples.nix lib.systems: add powerpc64-linux 2021-01-30 12:34:24 -08:00
inspect.nix Merge master into staging-next 2020-11-16 09:01:53 +01:00
parse.nix lib.systems: add powerpc64-linux 2021-01-30 12:34:24 -08:00
platforms.nix lib: Clean up how linux and gcc config is specified 2021-01-23 10:01:28 -05:00