9c, 9l: allow CC9=clang
R=rsc CC=codebot http://codereview.appspot.com/217045
This commit is contained in:
parent
c4da64274d
commit
0c6074b692
3 changed files with 58 additions and 19 deletions
12
bin/9l
12
bin/9l
|
|
@ -12,7 +12,7 @@ extralibs="-lm"
|
|||
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
|
||||
case "$tag" in
|
||||
*FreeBSD*)
|
||||
ld=gcc
|
||||
ld=${CC9:-gcc}
|
||||
userpath=true
|
||||
extralibs="$extralibs -lutil"
|
||||
case "`uname -r`" in
|
||||
|
|
@ -25,18 +25,18 @@ case "$tag" in
|
|||
esac
|
||||
;;
|
||||
*BSD*)
|
||||
ld=gcc
|
||||
ld=${CC9:-gcc}
|
||||
userpath=true
|
||||
extralibs="$extralibs -lutil"
|
||||
;;
|
||||
*OSF1*)
|
||||
ld=cc
|
||||
ld=${CC9:-cc}
|
||||
userpath=true
|
||||
extralibs="$extralibs -lutil"
|
||||
nmflags="-B"
|
||||
;;
|
||||
*Linux*)
|
||||
ld=gcc
|
||||
ld=${CC9:-gcc}
|
||||
userpath=true
|
||||
extralibs="$extralibs -lutil"
|
||||
case "${SYSVERSION:-`uname -r`}" in
|
||||
|
|
@ -46,7 +46,7 @@ case "$tag" in
|
|||
esac
|
||||
;;
|
||||
*Darwin*)
|
||||
ld="gcc -m32"
|
||||
ld="${CC9:-gcc} -m32"
|
||||
;;
|
||||
*SunOS*)
|
||||
ld="${CC9:-cc} -g"
|
||||
|
|
@ -76,7 +76,7 @@ case "$tag" in
|
|||
esac
|
||||
;;
|
||||
*AIX*)
|
||||
ld=gcc
|
||||
ld=${CC9:-gcc}
|
||||
nmflags="-B"
|
||||
;;
|
||||
*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue