[GHC] #7720: iOS patch no 9: Linking

GHC cvs-ghc at haskell.org
Sun Apr 21 18:13:49 CEST 2013


#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



More information about the ghc-tickets mailing list