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

Hackage trac at galois.com
Mon Jan 25 21:48:37 EST 2010


#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          |  
----------------------------+-----------------------------------------------

Comment(by KrzysztofSkrzetnicki):

 It should also be noted that simply building with {{{ghc --make -dynamic
 program.hs}}} works correctly and so does {{{cabal install --enable-
 shared}}} with libraries. I can't do the former with my program since
 there is a lot of Cabal-related stuff (like Paths_ module or LANGUAGE
 extensions set in .cabal file).

 OTOH I doesn't really need -dynamic executables, so it's definitely not a
 top priority for me.

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



More information about the cabal-devel mailing list