build: don't use install_name_tool for macOS deploy when cross-compiling

This is only needed when compiling on macOS. This means we can also
better scope the usage of `-headerpad_max_install_names`.
This commit is contained in:
fanquake
2024-04-15 11:28:44 +01:00
parent 78b6b5c485
commit 3bee51427a
9 changed files with 6 additions and 16 deletions

View File

@@ -66,9 +66,8 @@ building for macOS.
Apple's version of `binutils` (called `cctools`) contains lots of functionality missing in the
FSF's `binutils`. In addition to extra linker options for frameworks and sysroots, several
other tools are needed as well such as `install_name_tool`, `lipo`, and `nmedit`. These
do not build under Linux, so they have been patched to do so. The work here was used as
a starting point: [mingwandroid/toolchain4](https://github.com/mingwandroid/toolchain4).
other tools are needed as well. These do not build under Linux, so they have been patched to
do so. The work here was used as a starting point: [mingwandroid/toolchain4](https://github.com/mingwandroid/toolchain4).
In order to build a working toolchain, the following source packages are needed from
Apple: `cctools`, `dyld`, and `ld64`.