Blob
1 #!/bin/sh3 usegcc()4 {5 cc=gcc6 cflags=" \7 -O2 \8 -c \9 -ggdb \10 -Wall \11 -Wno-parentheses \12 -Wno-missing-braces \13 -Wno-switch \14 -Wno-comment \15 -Wno-sign-compare \16 "17 }19 tag="`uname`-`uname -m`-${CC9:-cc}"20 case "$tag" in21 *BSD*) usegcc ;;22 *Darwin*) usegcc ;;23 *HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;;24 *Linux*) usegcc ;;25 *OSF1*) cc=cc; cflags="-g -O -c" ;;26 *SunOS*-cc) cc=cc; cflags="-g -O -c -xCC -D__sun__" ;;27 *SunOS*-gcc) usegcc ;;28 *)29 echo 9c does not know how to compile on "$tag" 1>&230 exit 131 esac33 exec $cc -I$PLAN9/include $cflags "$@"