diff options
author | rsc <devnull@localhost> | 2004-03-02 17:34:15 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-02 17:34:15 +0000 |
commit | 8f314994dbcc11b2d8397535ce8b0cf9d84150d0 (patch) | |
tree | 073d6711e464fc28770e1b450223b5b8cd4b447e /bin/9c | |
parent | 53dbac948575b07e95d184bbfbe4d8953c5ccc4c (diff) | |
download | plan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.tar.gz plan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.tar.bz2 plan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.zip |
More Mac tweaks.
Diffstat (limited to 'bin/9c')
-rwxr-xr-x | bin/9c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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" ;; |