Eric Kow wrote:
> By the way Simon,
>
> 2008/8/19 Simon Marlow <[EMAIL PROTECTED]>:
>> I just made this binary available from the darcs download page. Here's a
>> link:
>
> I recall you had a recipe for building darcs under Cygwin, with not so
> much copying things into the GHC directories, albeit with a little
> configure tweaking.
>
> Could you send it to us in patch form? Also, maybe a patch to replace
> the current build instructions (src/building_instructions.tex) would
> alleviate some of the pain that Windows people experience trying to
> build darcs.
>
> (I say easier because I suspect that installing Cygwin and the tools
> needed to build darcs may be a bit simpler than the equivalent actions
> on MSYS)
Ok, but this procedure is not at all satisfactory for a few reasons: you
need both MSYS and Cygwin (well, perhaps MSYS only would work, but I didn't
succeed in building libcurl using Cygwin), it relies on modifying the
configure.ac directly, and it relies on passing a few envorinment variables
(and --without-libcurl!!) to ./configure, and I also modified autoconf.mk
by hand to add -package random. I don't have a patch I'm afraid, because I
didn't spend the time to figure out why I needed -package random and how to
get it into autoconf.mk automatically. I'm sure you can figure out what to
do from the instructions:
Here's how I made my GHC binary:
1. Building curl
* download curl
* unpack it
* fire up an MSYS shell
* ./configure --disable-shared; make
* cd src
* ../libtool --mode=install cp libtool.la `pwd`/../libcurl.a
2. Building libz
* I already had one of these around, but the procedure is probably
very
3. Building darcs
* Use Cygwin
* comment out the lines `CURLLIBS=...` and `CURL_CONFIG=...` in
configure.ac. Then autoreconf.
* put this in config.sh (edit the paths as necessary):
{{{
#!/bin/sh
export CURLCFLAGS="-Ic:/builds/curl-7.18.2/include -DCURL_STATICLIB"
export CURLLIBS="-Lc:/builds/curl-7.18.2 -lcurl -lwinmm -lwldap32 -lws2_32
-lws2_32"
export CURL_CONFIG="c:/builds/curl-7.18.2/curl-config"
export CPPFLAGS=-Ic:/builds/zlib-1.2.3
export LDFLAGS=-Lc:/builds/zlib-1.2.3
export CC=c:/mingw/bin/gcc
./configure --without-libcurl --target=mingw
}}}
* sh config.sh (check that curl is detected, and pipelining=yes)
* I had to add `-package random` to `GHCFLAGS` in autoconf.mk (why?)
* make
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users