ncc: define __i386__ for x86 builds
[neatcc.git] / neatcc
blobd09e14885f8ca242ed527f295f7ca595b1fa5112
1 #!/bin/sh
2 NEAT="/path/to/neatlibc"
3 CC="/path/to/neatcc/ncc"
4 LD="/path/to/neatld/ld"
6 CPPFLAGS="-Dfloat=long -Ddouble=long -D__extension__="
8 for x in $*
9 do
10 if [ "$x" == "-c" ]
11 then
12 exec ${CC} ${CPPFLAGS} -I${NEAT} $*
14 done
16 exec ${LD} $* ${NEAT}/start.o ${NEAT}/libc.a