[GHC] #3756: Missing -lz option in testsuite

GHC trac at galois.com
Sun Feb 28 13:41:34 EST 2010


#3756: Missing -lz option in testsuite
--------------------------------+-------------------------------------------
  Reporter:  daniel.is.fischer  |           Type:  bug         
    Status:  new                |       Priority:  normal      
 Milestone:  6.12.2             |      Component:  Build System
   Version:  6.12.1             |       Keywords:              
Difficulty:                     |             Os:  Linux       
  Testcase:                     |   Architecture:  x86         
   Failure:  Other              |  
--------------------------------+-------------------------------------------

Comment(by daniel.is.fischer):

 What's the problem with adding '-optl-lz' to the command line of the
 pertinent tests or to EXTRA_HC_OPTS? Is it that the linker would/could
 pick the symbols from libz even when libbfd defines them too, and that
 would break things?
 So we'd need to determine whether libbfd depends on libz, and if it does,
 pass -lz. I assume testing whether
 {{{
 ldd `locate libbfd | grep so` | grep libz
 }}}
 returns a nonempty string is too naive/nonportable?

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


More information about the Glasgow-haskell-bugs mailing list