klibc: fix KLIBCARCH=riscv64
This commit is contained in:
parent
29483a4b5e
commit
694fc2fffe
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||||
hardeningDisable = [ "format" "stackprotector" ];
|
hardeningDisable = [ "format" "stackprotector" ];
|
||||||
|
|
||||||
makeFlags = commonMakeFlags ++ [
|
makeFlags = commonMakeFlags ++ [
|
||||||
"KLIBCARCH=${stdenv.hostPlatform.linuxArch}"
|
"KLIBCARCH=${if stdenv.hostPlatform.isRiscV64 then "riscv64" else stdenv.hostPlatform.linuxArch}"
|
||||||
"KLIBCKERNELSRC=${linuxHeaders}"
|
"KLIBCKERNELSRC=${linuxHeaders}"
|
||||||
] # TODO(@Ericson2314): We now can get the ABI from
|
] # TODO(@Ericson2314): We now can get the ABI from
|
||||||
# `stdenv.hostPlatform.parsed.abi`, is this still a good idea?
|
# `stdenv.hostPlatform.parsed.abi`, is this still a good idea?
|
||||||
|
|
Loading…
Reference in a new issue