Mercurial > hg > qcc
changeset 552:40ec0942b7f4
Add a script that downloads and installs mingw (a binary win32 toolchain based
on gcc and binutils), with comments how to use it under wine to test a
win32 hosted tinycc and win32 output files. This script is as much
documentation as meant to be used directly.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 20 Jan 2008 15:33:50 -0600 |
parents | d8b3fa09ca5d |
children | 4533aa54ffcf |
files | win32/merciless.sh |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/win32/merciless.sh Sun Jan 20 15:33:50 2008 -0600 @@ -0,0 +1,20 @@ +#!/bin/bash + +# Download and install a prebuilt binary mingw toolchain, suitable for running +# under wine to test win32 output and win32 host. + +mkdir mongo +cd mongo +wget http://downloads.sf.net/mingw/binutils-2.17.50-20060824-1.tar.gz +wget http://downloads.sf.net/mingw/gcc-core-3.4.5-20060117-1.tar.gz +wget http://downloads.sf.net/mingw/mingw-runtime-3.14.tar.gz +wget http://downloads.sf.net/mingw/w32api-3.10.tar.gz +tar xvzf binutils-*.tar.gz +tar xvzf gcc-core-*.tar.gz +tar xvzf mingw-runtime-*.tar.gz +tar xvzf w32api-*.tar.gz + +# Now run it with something like the following +# wine cmd +# path %path%;z:\home\landley\mongo\bin +# gcc hello.c