George Russell wrote:
> Currently (I have the latest version of everything) if I do this
> naively it falls over because the Makefile contains ihc commands
> and the code ihc produces contains _stdcall's, which ghc doesn't
> seem to understand.

I noticed the same during the build of HDirect RPMs. My current
hack (i.e. patch) is appended.

> If however I modify the ihc commands to use -g, everything goes
> swimmingly. [...]

Hmmm, I didn't try this...

Cheers,
   Sven
-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne
--- fptools/hdirect/lib/Makefile.orig	Wed Jun  2 15:35:24 1999
+++ fptools/hdirect/lib/Makefile	Wed Jul  7 13:31:59 1999
@@ -16,7 +16,7 @@
 AutoPrim_HC_OPTS   += $(cpp_opts)
 
 # Since we are using FFI exts we have to compile through C.
-HC_OPTS		+= -fglasgow-exts -fno-prune-tydecls -recomp -optc-D_stdcall=__stdcall
+HC_OPTS		+= -fglasgow-exts -fno-prune-tydecls -recomp -cpp -D_stdcall=stdcall
 
 WideString_HC_OPTS  += -monly-3-regs
 Automation_HC_OPTS  += -H12m -fno-warn-missing-methods

Reply via email to