diff options
author | rsc <devnull@localhost> | 2003-11-23 19:49:17 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-11-23 19:49:17 +0000 |
commit | 1c253ceb586c4519f42ce115954c4efab787f81a (patch) | |
tree | 22281aafc4c33f4ab310a845aec510f013511833 /bin/9l | |
parent | 50e628cb8f4594b7cbccc17ff3f701ff260a69c0 (diff) | |
download | plan9port-1c253ceb586c4519f42ce115954c4efab787f81a.tar.gz plan9port-1c253ceb586c4519f42ce115954c4efab787f81a.tar.bz2 plan9port-1c253ceb586c4519f42ce115954c4efab787f81a.zip |
Annoying changes to work on Sun boxes.
Diffstat (limited to 'bin/9l')
-rwxr-xr-x | bin/9l | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -1,26 +1,18 @@ #!/bin/sh -ld=none extralibs=-lm -tag="`uname`-`uname -m`-${CC:-cc}" +tag="`uname`-`uname -m`" case "$tag" in *FreeBSD*) ld=gcc ;; *BSD*) ld=gcc ;; *Linux*) ld=gcc ;; *Darwin*) ld=gcc ;; -*SunOS*-cc) ld=cc; extralibs="$extralibs -lrt -lpthread" ;; -*SunOS*-gcc) ld=gcc ;; +*SunOS*) ld=${CC9:-cc} + extralibs="$extralibs -lrt -lpthread -lsocket -lnsl" + ;; *) echo do not know how to link on "$tag" 1>&2 exit 1 esac -case $ld in -gcc) - exec gcc \ - -ggdb \ - -L$PLAN9/lib \ - "$@" \ - $extralibs - ;; -esac +exec $ld -L$PLAN9/lib "$@" $extralibs |