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:
parent
d91bce4ad5
commit
324efa8ec7
1 changed files with 1 additions and 1 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue