[GHC] #1021: GHC static libraries are not position independent in OSX

GHC trac at galois.com
Thu Nov 30 11:50:36 EST 2006


#1021: GHC static libraries are not position independent in OSX
--------------------------+-------------------------------------------------
 Reporter:  guest         |          Owner:         
     Type:  bug           |         Status:  new    
 Priority:  normal        |      Milestone:         
Component:  Build System  |        Version:  6.6    
 Severity:  normal        |     Resolution:         
 Keywords:                |     Difficulty:  Unknown
 Testcase:                |   Architecture:  powerpc
       Os:  MacOS X       |  
--------------------------+-------------------------------------------------
Comment (by alfonso.acosta at gmail.com):

 '''why doesn't it make sense to support -fPIC?'''

 I know that code genertion and linking are different issues but it's
 useless to generate position independent objects if they later must be
 linked with position dependent static libraries (and dynamic libraries are
 not available ).

 Linking would always lead to position dependent code independently of
 -fPIC being used when generating the different object files.

 ''The library binaries shipped with a particular binary package and the
 feature set of the compiler itself are two entirely different things.''

 Yes, but as I wrote above, if at least the core libraries are not
 position-independent it doesn't matter that much if -fPIC is supported or
 not. I don't see what advantage would it provide.

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


More information about the Glasgow-haskell-bugs mailing list