[mercury-users] Cross-compiling with mingw32

Michael Day mikeday at yeslogic.com
Fri Feb 14 13:40:52 AEDT 2003


> In the asm_fast.gc grade it compiled successfully, but when linking:
> /usr/bin/ld: bad -rpath option

Success! Adding an extra object file containing a faked snprintf gets a
Mercury "Hello, world!" compiled on Linux and running on Windows in just
1.1 megabytes!

Seriously though, it seems like it wouldn't be too tricky to offer a
binary distribution for a Linux->Windows cross compiling Mercury using
mingw32, which would be pretty handy.

Now with mmc --make and --use-grade-subdirs it's trivial to build programs
in multiple grades and cross-compiled for multiple architectures all from
the one place, which is a hugely cool if you want to deliver binaries for
multiple systems. Thanks to Mercury team for the steadily increasing user
friendliness of the build system!

Michael

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list