Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib.platform.loongnix: FIX gold linker not support
Debug: - BC configure-gold failure as a reason that gold linker haven't support loongarch architecture and i have check gold is not supporot it in every version. - According to `lib/systems/default.nix::linker`, the default choice of linker is `bdf` and shouldn't calling fo gold. - But according to `pkgs/development/tools/misc/binutils/default.nix` if the platform kernels execFormat was `elf` and platform wasn't RISCV then binusil will using gold as linker, which is different with prev. Action: 1. since i haven't well understood the overall project structure, and the platform(loongarch64) seems haven't any kind of connection with kernel *(i haven't ideas about how to description it's kernel or os? )*, just adding another negation to avoid to using `gold` linker when architecture is `loongarch64`. 2. adding a kind of document to helping latecommer to easy seem this situation. With-Bug: checking sysdep dirs... configure: error: The loongarch64 is not supported. error: builder for '/nix/store/qli5cbddq11gmjqwr4h5myj2iwjbbfqk-glibc-loongarch64-unknown-linux-gnu-2.35-224.drv' failed with exit code 1 log: https://fars.ee/wBwd Others: Sorry, but seems that i haven't enough time to finish this... very appreciated about @K900:0upti.me help when i was confused.
- Loading branch information