plan9port

[fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port # fast
git clone https://src.adamsgaard.dk/plan9port.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 2d8fd46b58ee8aa4a41f9a16ff80022aa1e7b7e9
parent f6dc1628d6b08cf674f0484f42810e04cb9e6e36
Author: rsc <devnull@localhost>
Date:   Fri, 26 Mar 2004 02:09:17 +0000

Add -lutil on systems that have it.

Diffstat:
Mbin/9l | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git 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"