aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-02 17:34:15 +0000
committerrsc <devnull@localhost>2004-03-02 17:34:15 +0000
commit8f314994dbcc11b2d8397535ce8b0cf9d84150d0 (patch)
tree073d6711e464fc28770e1b450223b5b8cd4b447e /bin/9c
parent53dbac948575b07e95d184bbfbe4d8953c5ccc4c (diff)
downloadplan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.tar.gz
plan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.tar.bz2
plan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.zip
More Mac tweaks.
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/9c b/bin/9c
index 871e6f66..beba6064 100755
--- a/bin/9c
+++ b/bin/9c
@@ -3,10 +3,9 @@
usegcc()
{
cc=gcc
- cflags=" \
+ ngflags=" \
-O2 \
-c \
- -ggdb \
-Wall \
-Wno-parentheses \
-Wno-missing-braces \
@@ -14,14 +13,14 @@ usegcc()
-Wno-comment \
-Wno-sign-compare \
"
+ cflags="$cflags -ggdb"
}
-tag="`uname`-`uname -m`-${CC9:-cc}"
+tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
case "$tag" in
*BSD*) usegcc ;;
*Darwin*) usegcc
- cflags=`echo $cflags|sed 's/-ggdb/-g3 -no-cpp-precomp/'`
- ;;
+ cflags="$ngflags -g3 -no-cpp-precomp" ;;
*HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;;
*Linux*) usegcc ;;
*OSF1*) cc=cc; cflags="-g -O -c" ;;