3
0
Fork 0
forked from mirrors/nixpkgs

spidermonkey: Force lp64d ABI for riscv64

cc-rs is hardcoded to use the soft-float ABI for riscv64, while
the rest of the system is double-float. This is not just a missing
stub header file - You can't link object files using different
ABIs.
This commit is contained in:
Zhaofeng Li 2022-01-05 11:17:38 -08:00
parent ef4fe46f17
commit 2303031e51

View file

@ -107,6 +107,10 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
# cc-rs insists on using -mabi=lp64 (soft-float) for riscv64,
# while we have a double-float toolchain
NIX_CFLAGS_COMPILE = lib.optionalString (with stdenv.hostPlatform; isRiscV && is64bit) "-mabi=lp64d";
# Remove unnecessary static lib
preFixup = ''
moveToOutput bin/js78-config "$dev"