mlton-cross
-----------

These packages add cross-compilation support to MLton.
To use them, you will also need a cross-compiling gcc toolchain and libgmp3.
The easiest way to meet these requirements is to use the emdebian project.

First add this source to your /etc/apt/sources.list:
	deb http://www.emdebian.org/debian/ sid main
... and run: apt-get update

To setup a debian armel target, run:
	apt-cross -v -v -a armel -i libgmp3-dev libc6-dev
	apt-get install gcc-4.4-arm-linux-gnueabi
For an ia64 target:
	apt-cross -v -v -a ia64 -i libgmp3-dev libc6.1-dev
	apt-get install gcc-4.4-ia64-linux-gnu

To use MLton to compile SML for armel/ia64, run:
	mlton -target arm-linux-gnueabi myproject.mlb
	mlton -target ia64-linux-gnu myproject.mlb

Toolchains for win32/win64 should already be installed via dependencies.

 -- Wesley W. Terpstra (Debian) <terpstra@debian.org>, Sun, 14 Feb 2010 03:47:12 +0200
