aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-24 04:52:49 +0000
committerrsc <devnull@localhost>2004-04-24 04:52:49 +0000
commit78802e6993a0f44d7ac7ff7d0922d55d1b089dac (patch)
tree2131829fda5ff9ee9f8ef8c88695c361cc4ba335 /bin/9c
parent272fd660b41d7ec793bc9d8972878510f3b66055 (diff)
downloadplan9port-78802e6993a0f44d7ac7ff7d0922d55d1b089dac.tar.gz
plan9port-78802e6993a0f44d7ac7ff7d0922d55d1b089dac.tar.bz2
plan9port-78802e6993a0f44d7ac7ff7d0922d55d1b089dac.zip
various bug fixes
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/9c b/bin/9c
index bc387b25..c320d946 100755
--- a/bin/9c
+++ b/bin/9c
@@ -35,6 +35,7 @@ case "$tag" in
u=`uname`
v=`uname -r`
s=`echo $u$v | tr '. ' '__'`
+ cflags="$ngflags -g"
cflags="$cflags -D__$s__"
;;
*)
@@ -42,4 +43,13 @@ case "$tag" in
exit 1
esac
-exec $cc -I$PLAN9/include $cflags "$@"
+case "$tag" in
+*SunOS*-cc)
+ exec $cc -I$PLAN9/include $cflags "$@" |
+ /bin/sed 's/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g'
+ ;;
+*)
+ exec $cc -I$PLAN9/include $cflags "$@"
+ ;;
+esac
+