
#7720: iOS patch no 9: Linking ----------------------------------+----------------------------------------- Reporter: StephenBlackheath | Owner: Type: feature request | Status: patch Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: Other Architecture: arm | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: 7724 Related: | ----------------------------------+----------------------------------------- Comment(by igloo): This bit is a rather unpleasant kludge, and will presumably fail with packages that use other libraries: {{{ opt `notElem` ["-ldl", "-liconv", "-lm", "-lpthread"] }}} In `main/DriverPipeline.hs`, `linkBinary` does {{{ pkg_link_opts <- getPackageLinkOpts dflags dep_packages }}} which ultimately gives us {{{ map ("-l" ++) (packageHsLibs dflags p ++ extraLibraries p) ++ ldOptions p }}} If you instead use `[]`, instead of calling `getPackageLinkOpts`, on iOS, then does that work? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7720#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler