aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/9c15
1 files changed, 13 insertions, 2 deletions
diff --git a/bin/9c b/bin/9c
index 020123c3..bef94539 100755
--- a/bin/9c
+++ b/bin/9c
@@ -24,8 +24,19 @@ case "$tag" in
*HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;;
*Linux*) usegcc ;;
*OSF1*) cc=cc; cflags="-g -O -c" ;;
-*SunOS*-cc) cc=cc; cflags="-g -O -c -xCC -D__sun__" ;;
-*SunOS*-gcc) usegcc ;;
+*SunOS*-cc) cc=cc;
+ cflags="-g -O -c -xCC -D__sun__"
+ u=`uname`
+ v=`uname -v`
+ s=`echo $u$v | tr '. ' '__'
+ cflags="$cflags -D$s"
+ ;;
+*SunOS*-gcc) usegcc
+ u=`uname`
+ v=`uname -v`
+ s=`echo $u$v | tr '. ' '__'
+ cflags="$cflags -D$s"
+ ;;
*)
echo 9c does not know how to compile on "$tag" 1>&2
exit 1