
#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 maxs): This patch adds an option to link everything into a static archive on Mac. I.e. {{{ ghc -staticlib Foo.hs # -> liba.a }}} You can then link liba.a with with some C object files with gcc. Since GHC iOS requires this, it will always use this. It uses Mac's libtool and will require changes to work on Linux and Windows. (I think Windows users would prefer the DLL option instead anyway) Libtool will also emit a lot of warnings, I think this is because libtool doesn't understand the contents of the haskell archives. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8127#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler