passing CFLAGS and LDFLAGS to ghc via Cabal?

Sergei Trofimovich slyich at
Mon Oct 27 08:59:13 UTC 2014

On Mon, 27 Oct 2014 17:50:41 +0900
Jens Petersen <juhpetersen at> wrote:

> I can now get proper debuginfo generated for libraries,
> but somehow not for executables: but that looks
> like some ghc behaviour problem perhaps.

More likely cabal's feature. To avoid stripping we use
    --disable-executable-stripping (cabal-1.4+)
option for 'Setup configure' phase (and then we strip
binaries by package manager if user didn't request
debugging support).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <>

More information about the cabal-devel mailing list