#5816: static linking silently fails in ghc
-------------------------------+--------------------------------------------
    Reporter:  carter          |       Owner:  igloo       
        Type:  bug             |      Status:  infoneeded  
    Priority:  normal          |   Milestone:  7.6.1       
   Component:  Compiler        |     Version:  7.2.2       
    Keywords:  linking osx     |          Os:  MacOS X     
Architecture:  x86_64 (amd64)  |     Failure:  None/Unknown
  Difficulty:  Unknown         |    Testcase:              
   Blockedby:                  |    Blocking:              
     Related:                  |  
-------------------------------+--------------------------------------------

Comment(by simonmar):

 You started with a hypothesis about what the bug is: that GHC statically
 links C libraries, but GHCi dynamically links them.  That isn't true, or
 at least not usually true: GHC just calls the linker passing the
 appropriate `-lfoo` options, and the linker chooses which library to link.
 Typically the linker will choose the dynamic library over the static
 library.

 In any case, it isn't clear to me why this hypothesis (which may or may
 not be true) would give rise to a crash.  The dynamic and static versions
 of the libraries should have identical ABIs.

 So the upshot is, we need a simple reproducible example of something that
 goes wrong.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5816#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to