tInclude Solaris version. - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0f192bb8f2fc7ea22355a3a5a60778dda338cf48
(DIR) parent 6b2d0fd94642d4e041bffac34cb79eaf9169760b
(HTM) Author: rsc <devnull@localhost>
Date: Fri, 26 Mar 2004 05:01:11 +0000
Include Solaris version.
Diffstat:
M bin/9c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/bin/9c b/bin/9c
t@@ -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