klibc: fix KLIBCARCH=riscv64

This commit is contained in:
Astro 2022-09-06 00:51:51 +02:00
parent 29483a4b5e
commit 694fc2fffe

View file

@ -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?