From 2d8fd46b58ee8aa4a41f9a16ff80022aa1e7b7e9 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 26 Mar 2004 02:09:17 +0000 Subject: Add -lutil on systems that have it. --- bin/9l | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin') 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" -- cgit v1.2.3