#3704: Using -shared without -dynamic should be rejected on linux
---------------------------+------------------------------------------------
  Reporter:  asuffield     |          Owner:                  
      Type:  bug           |         Status:  new             
  Priority:  normal        |      Milestone:                  
 Component:  Compiler      |        Version:                  
Resolution:                |       Keywords:                  
Difficulty:                |             Os:  Unknown/Multiple
  Testcase:                |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---------------------------+------------------------------------------------
Comment (by duncan):

 In this ticket and in #3705, we could produce better diagnostics than
 linker errors if we tracked how built libs/packages expect to find their
 external symbols.

 The thing to track is whether they expect to find them within the same
 shared object or in a separate shared object. That would also have caught
 an apparent problem Max ran into when playing with shared libs.

 This would involve tracking if the object files were built with -dynamic
 or not (and perhaps -fPIC too).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3704#comment:3>
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