#5289: Can't use ghci with a library linked against libstdc++
---------------------------------+------------------------------------------
    Reporter:  bos               |        Owner:            
        Type:  bug               |       Status:  new       
    Priority:  normal            |    Milestone:  7.2.1     
   Component:  GHCi              |      Version:  7.0.3     
    Keywords:                    |     Testcase:            
   Blockedby:                    |   Difficulty:            
          Os:  Unknown/Multiple  |     Blocking:            
Architecture:  Unknown/Multiple  |      Failure:  GHCi crash
---------------------------------+------------------------------------------

Comment(by bos):

 I think that the proposed solution of using `gcc -print-search-dirs` may
 not necessarily be correct. For instance, under Linux, `libstdc++.so` is a
 symlink to the ''real'' `libstdc++.so.6`, and on many distros the symlink
 won't be present if the `libstdc++-devel` package or its equivalent has
 not been installed.

 I believe the real problem is that `ghc` records the plain name of the
 library that is depended upon at build time, when instead it should be
 either following the symlink or interpreting the ld script, and storing
 the complete path to that, just like the normal system linker does.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to