
#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 juhp): Replying to [comment:4 KrzysztofSkrzetnicki]:
But I suspect that fixing #600 would solve the issue with cabal-install as well, right?
It should also be noted that simply building with {{{ghc --make -dynamic
I think so too. Replying to [comment:5 KrzysztofSkrzetnicki]: program.hs}}} works correctly Right but that does not give you dynamic linking to your library, I think?
and so does {{{cabal install --enable-shared}}} with libraries.
and no dynamic executable in this case. Have you tried dynamic and shared without profiling? (I guess the Cabal version metadata in trac needs updating I hope this can be fixed in 1.10.) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/600#comment:6 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects