[Hackage] #600: Cabal should use -dynamic linking for executable when package configured --enable-shared

Hackage trac at galois.com
Tue Oct 20 10:33:54 EDT 2009


#600: Cabal should use -dynamic linking for executable when package configured
--enable-shared
----------------------------+-----------------------------------------------
  Reporter:  juhp           |        Owner:           
      Type:  defect         |       Status:  new      
  Priority:  normal         |    Milestone:  Cabal-1.8
 Component:  Cabal library  |      Version:  HEAD     
  Severity:  normal         |     Keywords:           
Difficulty:  unknown        |   Ghcversion:           
  Platform:  Linux          |  
----------------------------+-----------------------------------------------
 With ghc-6.12 {{{--enable-shared}}} now works well to create shared
 libraries,
 however executable binary programs generated with Cabal are always
 statically linked.  When configuring with --enable-shared they should be
 dynamically linked if possible.

 Here is a patch tested successfully with ghc-6.12 RC1 on Linux.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/600>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list