diff options
author | Astro <astro@spaceboyz.net> | 2022-09-06 00:51:51 +0200 |
---|---|---|
committer | Astro <astro@spaceboyz.net> | 2022-09-06 00:51:51 +0200 |
commit | 694fc2fffee8a96b473c530d76e06369d6dded1e (patch) | |
tree | 79ad9fdeaf50681f807e17802e23077b13aa99d0 /pkgs/os-specific/linux/klibc | |
parent | 29483a4b5ee9287597d87722cdb9624dcbf022f7 (diff) |
klibc: fix KLIBCARCH=riscv64
Diffstat (limited to 'pkgs/os-specific/linux/klibc')
-rw-r--r-- | pkgs/os-specific/linux/klibc/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/klibc/default.nix b/pkgs/os-specific/linux/klibc/default.nix index 6efcb01cc531c..47cf03a3a87fb 100644 --- a/pkgs/os-specific/linux/klibc/default.nix +++ b/pkgs/os-specific/linux/klibc/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { hardeningDisable = [ "format" "stackprotector" ]; makeFlags = commonMakeFlags ++ [ - "KLIBCARCH=${stdenv.hostPlatform.linuxArch}" + "KLIBCARCH=${if stdenv.hostPlatform.isRiscV64 then "riscv64" else stdenv.hostPlatform.linuxArch}" "KLIBCKERNELSRC=${linuxHeaders}" ] # TODO(@Ericson2314): We now can get the ABI from # `stdenv.hostPlatform.parsed.abi`, is this still a good idea? |