Problems during link with ghc-ios
Hi all, I was able to build a ghc cross-compiler as per the wiki instructions (1), but I'm having trouble linking the static library in my application. Previously, I was producing a single lib using Stephen Blackheath's ghc-iphone binary with the flags "--make" and "-no-hs-main". I've been attempting to use the "-staticlib" and "-threaded" options to build the library, but Xcode reports missing symbols from both the RTS and my own code when it tries to link. Furthermore, when I run arm-apple-darwin10-ghc it reports that a number of libraries from the RTS have no symbols (although "nm" can find them just fine). Any suggestions for how to fix these problems would be appreciated! Thanks again, Thomas (1) http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS
On Mon, Sep 16, 2013 at 3:30 PM, thomas burt
I've been attempting to use the "-staticlib" and "-threaded" options to build the library, but Xcode reports missing symbols from both the RTS and my own code when it tries to link. Furthermore, when I run arm-apple-darwin10-ghc it reports that a number of libraries from the RTS have no symbols (although "nm" can find them just fine).
In case anyone is having the same issue: I was able to fix this by setting "Build Active Architecture Only" to YES in the Xcode build settings. -Thomas
participants (1)
-
thomas burt