1 Feb 2008 16:33
MinGW
Ivan Shmakov <ivan <at> theory.asu.ru>
2008-02-01 15:33:31 GMT
2008-02-01 15:33:31 GMT
I've started hacking the Scheme48 source in order to make it
build with MinGW. So far, I was able to cross-compile the VM on
a GNU/Linux host roughly as follows:
$ mkdir +build && cd +build/
$ ../configure --prefix=/mingw32 --host=i586-mingw32msvc \
ac_cv_sizeof_void_p=4 ac_cv_bits_per_byte=8 \
CPPFLAGS=-D_WIN32_WINNT=0x0501
...
$ LC_ALL=C nohup time make &
... wait for it to break...
$ i586-mingw32msvc-gcc -shared \
-o c/srfi-27.so c/srfi-27.o c/libscheme48.a -lwsock32 -lws2_32
$ LC_ALL=C nohup time make scheme48vm &
... should build the VM...
$
It will probably be somewhat tricky to get the image built in
this case.
I had to patch the current source as follows. Some of the
changes (minor bug fixes) probably may be useful outside of the
scope of the MinGW compilation. (Check c/fake/sysexits.h, and
Makefile.in for CPPFLAGS, for example.)
diff -r 43f2807b79eb Makefile.in
--- a/Makefile.in Sun Jan 27 18:33:32 2008 +0600
+++ b/Makefile.in Fri Feb 01 21:15:32 2008 +0600
<at> <at> -11,7 +11,7 <at> <at> DEFS = <at> DEFS <at> -D__COMPILING_SCHEME48_ITS
DEFS = <at> DEFS <at> -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"$(HOST_ARCHITECTURE)\"
(Continue reading)
RSS Feed