GHC doesn't pass -D options to gcc

Krasimir Angelov ka2_mail at yahoo.com
Mon Jan 10 11:52:28 EST 2005


--- Simon Marlow <simonmar at microsoft.com> wrote:

> On 09 January 2005 12:11, Krasimir Angelov wrote:
> 
> >   GHC doesn't pass -D option to gcc when it is
> used as
> > C compiler. I don't know whether this is a bug or
> a
> > feature but this makes imposible to use defines
> from C
> > sources when they are compiled with Cabal.
> 
> -optc-D?  Or have I misunderstood the problem?
> 
> Cheers,
> 	Simon
> 

Cabal uses ghc to compile C sources and it passes all
cc-options to ghc. Probably all cc-options should be
prefixed with -optc. I will check that.

Cheers,
  Krasimir



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250



More information about the Glasgow-haskell-bugs mailing list