mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
Add -lutil on systems that have it.
This commit is contained in:
parent
f6dc1628d6
commit
2d8fd46b58
1 changed files with 8 additions and 4 deletions
12
bin/9l
12
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"
|
||||
|
|
Loading…
Reference in a new issue