[darcs-devel] Running darcs in GHCi
Zachary P. Landau
kapheine at divineinvasion.net
Sat Feb 10 07:19:34 PST 2007
> On my system (MacOSX-ppc) it's also necessary to add a compiler flag
> to modify some bizarre behavior of Apple's gcc port. Adding CFLAGS='-
> mmacosx-version-min=10.4' when running ./configure will transform
> some symbols from _snprintf$LDBLStub (which statically-links OK, but
> breaks ghci's dynamic linking) into _snprintf$LDBL128 (which works
> fine either statically or dynamically).
>
> After configuring with that flag added, I run 'make' to produce .o
> files for all the C modules (as well as the Haskell modules, of
> course... ghci seems happy to use them) and then
>
> ghci -cpp -I. -DHAVE_CURSES -DHAVE_CURL -package parsec -optl-
> lcurl -optl-lssl -optl-lcrypto -optl-lz -optl-lcurses darcs.lhs
> maybe_relink.o atomic_create.o hscurl.o umask.o c_compat.o fpstring.o
>
> will load everything into ghci and leave you at the *Main> prompt.
This worked perfectly for me (in Linux, for the record). Thanks a lot,
this is certainly faster than building it every time. I updated with
the wiki page with your updated ghci options and the note about MacOSX
here: http://darcs.net/DarcsWiki/DeveloperTips.
--
Zachary P. Landau <kapheine at divineinvasion.net>
GPG: gpg --recv-key 0xC9F82052 | http://divineinvasion.net/kapheine.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20070210/a966f304/attachment.pgp
More information about the darcs-devel
mailing list