aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
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
+