Skip to content

Commit

Permalink
ld64: Prefer 'ld -ld_classic' to 'ld-classic' in wrapper script
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed Sep 28, 2023
1 parent fb5428d commit 32bc043
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion devel/ld64/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup compiler_blacklist_versions 1.0
name ld64
epoch 2
version 3
revision 5
revision 6
set dyld_version 655.1.1
categories devel
platforms darwin
Expand Down
8 changes: 4 additions & 4 deletions devel/ld64/files/ld-classic-xcode
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

if [[ -x /usr/bin/xcrun ]] ; then
exec /usr/bin/xcrun ld-classic "${@}"
elif [[ -x /usr/bin/ld-classic ]] ; then
exec /usr/bin/ld-classic "${@}"
exec /usr/bin/xcrun ld -ld_classic "${@}"
elif [[ -x /usr/bin/ld ]] ; then
exec /usr/bin/ld -ld_classic "${@}"
else
exec ld-classic "${@}"
exec ld -ld_classic "${@}"
fi

0 comments on commit 32bc043

Please sign in to comment.