aboutsummaryrefslogtreecommitdiff
path: root/bin/9l
diff options
context:
space:
mode:
authorNikolai Saoukh <nikolai.saoukh@gmail.com>2010-02-22 16:53:37 -0800
committerRuss Cox <rsc@swtch.com>2010-02-22 16:53:37 -0800
commit0c6074b6920c8e115944c9c5e79b74e9faad84cb (patch)
tree8ca6595d085fa1eda220f3c6fbf122c908f020b3 /bin/9l
parentc4da64274d01d25fe699f888ce7ad6311bf4ef8b (diff)
downloadplan9port-0c6074b6920c8e115944c9c5e79b74e9faad84cb.tar.gz
plan9port-0c6074b6920c8e115944c9c5e79b74e9faad84cb.tar.bz2
plan9port-0c6074b6920c8e115944c9c5e79b74e9faad84cb.zip
9c, 9l: allow CC9=clang
R=rsc CC=codebot http://codereview.appspot.com/217045
Diffstat (limited to 'bin/9l')
-rwxr-xr-xbin/9l12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/9l b/bin/9l
index 2659db50..e3fa3091 100755
--- a/bin/9l
+++ b/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"
;;
*)