diff --git a/bin/9l b/bin/9l index a7924e74..5ecdf405 100755 --- a/bin/9l +++ b/bin/9l @@ -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"