15 -Wno-unknown-pragmas \
16 -fno-omit-frame-pointer \
18 # want to put -fno-optimize-sibling-calls here but
19 # that option only works with gcc3+ it seems
20 cflags="$ngflags -ggdb"
23 tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
27 cflags="$ngflags -g3 -no-cpp-precomp" ;;
28 *HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;;
32 cflags="$cflags -D__Linux26__"
36 *OSF1*) cc=cc; cflags="-g -O -c" ;;
38 cflags="-g -O -c -xCC -D__sun__"
41 s=`echo $u$v | tr '. ' '__'`
42 cflags="$cflags -D__$s__"
47 s=`echo $u$v | tr '. ' '__'`
49 cflags="$cflags -D__$s__"
52 echo 9c does not know how to compile on "$tag" 1>&2
58 exec $cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>&1 |
59 /bin/sed 's/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' 1>&2
62 exec $cc -DPLAN9PORT -I$PLAN9/include $cflags "$@"