Fri May  1 05:14:45 PDT 2009  Duncan Coutts <[email protected]>
  * Make ghc -dynamic imply -fPIC for C code
  As is already the case for ghc -fPIC. This is needed because ghc -dynamic
  means to generate code that is capable of being linked to Haskell shared
  libs and for C code the equivalent is -fPIC. Normally C code does not need
  -fPIC merely to link to shared libs however Haskell shared libs do not
  follow common conventions. In particular the static data cannot be
  referenced statically because it cannot be copied by the static linker.
  The linker cannot copy them because we do not specify a .size for the
  _closure entries (in the .data section) though in principle we could.

    M ./compiler/main/DynFlags.hs -2 +2

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090501121445-b0bbe-8e975404a7192565bc9b552291977c12c825f2d0.gz

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to