Add -lutil on systems that have it.

This commit is contained in:
rsc 2004-03-26 02:09:17 +00:00
parent f6dc1628d6
commit 2d8fd46b58

12
bin/9l
View file

@ -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"