[Haskell-cafe] Adding gcc type options with cabal (e.g. -mno-cygwin)

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Mon Feb 4 17:55:35 EST 2008


On Mon, 2008-02-04 at 17:18 -0500, bbrown wrote:
> Is there a way to pass misc options to the cabal, ghc process.
> 
> I tried the following:
> 
> extra-libraries:         sqlite3
> extra-lib-dirs:          C:\cygwin\lib
> include-dirs:            C:\cygwin\usr\include
> ghc-options:             -mno-cygwin
> 
> runhaskell Setup.lhs build --ghc-options=-mno-cygwin -v
> 
> No dice, doesn't show up.

Really? That's odd, works for me:

$ runhaskell Setup.lhs build --ghc-options=-mno-cygwin -v
...
[snip]
...
ghc-6.8.2: unrecognised flags: -mno-cygwin
Usage: For basic information, try the `--help' option.

Also works with runhaskell Setup.lhs configure --ghc-options=-mno-cygwin

Works in the sense that it passes the flag through to ghc. Of course I'm
on unix and ghc does not recognise that flag.

What version of Cabal are you using?

Duncan



More information about the Haskell-Cafe mailing list