default profiles now using '-std=gnu99'
[k8jam.git] / 0build_cross.sh
blobc89c87025dd465c2f878ae67f67ccaf263950c04
1 #!/bin/sh
3 MGCC="i686-pc-mingw32-gcc -pipe -static-libgcc"
4 CFLAGS="-O2 -DNT -Wall -DMKJAMBASE_COMPACT"
5 CC="${MGCC}"
6 LINK="${CC}"
7 #LINKFLAGS="-s"
8 LINKFLAGS="-s -Wl,-subsystem,console"
9 AR="i686-pc-mingw32-ar -ru"
10 RANLIB="i686-pc-mingw32-ranlib"
11 LINKLIBS="-lkernel32 -ladvapi32"
12 DESTPATH="bin.win32"
13 BUILDPATH="_wbuild"
14 WINE="tan"
15 XOS="nt"
16 EXESFX=".exe"
18 ${CC} -v >/dev/null 2>&1
19 if test "$?" = "127"; then
20 echo "FATAL: MinGW cross-compiler not found!"
21 exit 1
24 . ./0build_common.sh