[GHC] #8127: iOS patch no 19: Linking
GHC
ghc-devs at haskell.org
Thu Aug 29 07:15:07 CEST 2013
#8127: iOS patch no 19: Linking
-------------------------------------+-------------------------------------
Reporter: | Owner:
StephenBlackheath | Status: patch
Type: bug | Milestone:
Priority: normal | Version: 7.7
Component: Compiler | Keywords:
Resolution: | Architecture: arm
Operating System: Other | Difficulty: Moderate (less
Type of failure: GHC doesn't work | than a day)
at all | Blocked By:
Test Case: | Related Tickets:
Blocking: 7724 |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp <aseipp@…>):
In [changeset:98b0d05de35bd531102d832f3108050549fd781f/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="98b0d05de35bd531102d832f3108050549fd781f"
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: Luke Iannini <lukexi at me.com>
Authored-by: Maxwell Swadling <maxwellswadling at gmail.com>
Authored-by: Stephen Blackheath <... at blacksapphire.com>
Signed-off-by: Austin Seipp <aseipp at pobox.com>
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8127#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list