klibc: fix KLIBCARCH=riscv64

Astro 694fc2ff 29483a4b

+1 -1
+1 -1
pkgs/os-specific/linux/klibc/default.nix
··· 25 hardeningDisable = [ "format" "stackprotector" ]; 26 27 makeFlags = commonMakeFlags ++ [ 28 - "KLIBCARCH=${stdenv.hostPlatform.linuxArch}" 29 "KLIBCKERNELSRC=${linuxHeaders}" 30 ] # TODO(@Ericson2314): We now can get the ABI from 31 # `stdenv.hostPlatform.parsed.abi`, is this still a good idea?
··· 25 hardeningDisable = [ "format" "stackprotector" ]; 26 27 makeFlags = commonMakeFlags ++ [ 28 + "KLIBCARCH=${if stdenv.hostPlatform.isRiscV64 then "riscv64" else stdenv.hostPlatform.linuxArch}" 29 "KLIBCKERNELSRC=${linuxHeaders}" 30 ] # TODO(@Ericson2314): We now can get the ABI from 31 # `stdenv.hostPlatform.parsed.abi`, is this still a good idea?