Skip to content

Commit

Permalink
macos: try -Wl,-ld_new
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Jul 8, 2024
1 parent 23dcdff commit 08d9a94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ build_single_target() {
if [ "${_TOOLCHAIN}" = 'llvm-apple' ]; then
# --target= works too, but prefer -arch for its multi-arch support (we are not using it yet)
_CC_GLOBAL="clang${_CCSUFFIX} -arch ${_machines}"
_LDFLAGS_GLOBAL+=' -Wl,-ld_new'
else
_CC_GLOBAL="clang${_CCSUFFIX} --target=${_TRIPLET}"
fi
Expand Down

0 comments on commit 08d9a94

Please sign in to comment.