0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

darwin.binutils: link unprefixed ld64 with prefix in binutils

ld64 is a cross-linker by default (albeit only to Darwin platforms), so
it is built without a prefix in the ld64 package. The linker in the
binutils package is expected to be prefixed, so adjust the build command
accordingly to make sure the linker is still linked correctly.
This commit is contained in:
Randy Eckenrode 2024-12-28 10:32:44 -05:00
parent d91bce4ad5
commit 324efa8ec7
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -106,7 +106,7 @@ stdenvNoCC.mkDerivation {
makeWrapper "${lib.getBin clang-unwrapped}/bin/clang" "$out/bin/${targetPrefix}as" \
--add-flags "-x assembler -integrated-as -c"
ln -s '${lib.getBin ld64}/bin/${targetPrefix}ld' "$out/bin/${targetPrefix}ld"
ln -s '${lib.getBin ld64}/bin/ld' "$out/bin/${targetPrefix}ld"
${linkManPages (lib.getMan ld64) "ld" "ld"}
${linkManPages (lib.getMan ld64) "ld-classic" "ld-classic"}
${linkManPages (lib.getMan ld64) "ld64" "ld64"}