summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2022-09-07 12:51:01 +0200
committerGitHub <noreply@github.com>2022-09-07 12:51:01 +0200
commit511cc4866f23abd9eb7ef66a60ce18232d422d02 (patch)
tree0d129184d10164758ca0889ff9d2f044ac508c2f
parent02307106c4d8037d56d22ff30b588039730be917 (diff)
parent694fc2fffee8a96b473c530d76e06369d6dded1e (diff)
Merge pull request #189932 from astro/klibc-riscv64
-rw-r--r--pkgs/os-specific/linux/klibc/default.nix2
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 6efcb01cc531..47cf03a3a87f 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?