#!/bin/sh
../gcc-3.4.2-20040916-1/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32  --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
make CFLAGS="-O2 -fomit-frame-pointer" CXXFLAGS="-mthreads -fno-omit-frame-pointer -O2" LDFLAGS=-s  bootstrap
cd gcc
make CFLAGS=-O2 LDFLAGS=-s LN_S=ln gnatlib_and_tools
