Skip to content
Snippets Groups Projects
Commit 98b0d05d authored by Austin Seipp's avatar Austin Seipp
Browse files

Rework how iOS does linking (#8127)


iOS has some particular constraints about how applications can be built:

 * We must generate a static library (.a) since XCode does the final
   link.
 * We need to carefully give the right set of arguments to libtool in
   the case we're generating an archive.
 * Dynamic linking isn't supported.
 * It can only be done on OS X.

This patch cleans up all of the above. We add a new flag `-staticlib`
(only supported on Darwin) that allows us to produce archive files using
libtool, and a -pgmlibtool flag to control which 'libtool' executable to
use.

This fixes #8127. I believe this is the last piece missing from the iOS
cross compiler.

Authored-by: default avatarLuke Iannini <lukexi@me.com>
Authored-by: default avatarMaxwell Swadling <maxwellswadling@gmail.com>
Authored-by: default avatarStephen Blackheath <...@blacksapphire.com>
Signed-off-by: default avatarAustin Seipp <aseipp@pobox.com>
parent 4652a5d2
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment