> Andres Loeh wrote:
>  > [...] The problem (that can be witnessed by calling ghc with the
>  > option -v) is that in calling the C preprocessor, the double quotes
>  > around the value of GET_PROC_ADDRESS, which are syntactically
>  > necessary, are no longer present. The problem can be fixed by
>  > quoting the double quotes once more, i.e. by saying
>  >
>  > SRC_HC_OPTS += -DCALLCONV=ccall 
> '-DGET_PROC_ADDRESS=\"glXGetProcAddressARB\"'
>  >
>  > However, this is a change in behaviour compared to earlier versions
>  > of ghc that seems undesireable to me ... [...]
> 
> I'm currently developing within the build tree of the HEAD from May
> 24th, and the double quotes *do* come through. If newer GHCs changed
> that behaviour, that would truly suck and probably breaks lots of
> Makefiles out there. I guess I'll have to build a new GHC to
> investigate this further...  >:-(

GHC now adds double quotes around all the arguments to gcc.  It
*doesn't* add any extra quotes to the -D and -U arguments any more.

Perhaps we should be using single quotes instead.  But in any case, just
removing the double quotes from your -D option should be enough to fix
it.

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to