diff options
author | rsc <devnull@localhost> | 2004-03-26 02:09:17 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-26 02:09:17 +0000 |
commit | 2d8fd46b58ee8aa4a41f9a16ff80022aa1e7b7e9 (patch) | |
tree | 49a2ad44aab4ce280057aa51cdf94191b2048eb9 /bin/9l | |
parent | f6dc1628d6b08cf674f0484f42810e04cb9e6e36 (diff) | |
download | plan9port-2d8fd46b58ee8aa4a41f9a16ff80022aa1e7b7e9.tar.gz plan9port-2d8fd46b58ee8aa4a41f9a16ff80022aa1e7b7e9.tar.bz2 plan9port-2d8fd46b58ee8aa4a41f9a16ff80022aa1e7b7e9.zip |
Add -lutil on systems that have it.
Diffstat (limited to 'bin/9l')
-rwxr-xr-x | bin/9l | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,13 +1,17 @@ #!/bin/sh -extralibs=-lm +extralibs="-lm" tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}" case "$tag" in *OpenBSD*) ld=gcc - extralibs="$extralibs -lpthread" + extralibs="$extralibs -lutil -lpthread" + ;; +*BSD*) ld=gcc + extralibs="$extralibs -lutil" + ;; +*Linux*) ld=gcc + extralibs="$extralibs -lutil" ;; -*BSD*) ld=gcc ;; -*Linux*) ld=gcc ;; *Darwin*) ld=gcc ;; *SunOS*) ld="${CC9:-cc} -g" extralibs="$extralibs -lrt -lpthread -lsocket -lnsl" |