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
|
#!/bin/sh
|
||||||
|
|
||||||
extralibs=-lm
|
extralibs="-lm"
|
||||||
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
|
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
|
||||||
case "$tag" in
|
case "$tag" in
|
||||||
*OpenBSD*) ld=gcc
|
*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 ;;
|
*Darwin*) ld=gcc ;;
|
||||||
*SunOS*) ld="${CC9:-cc} -g"
|
*SunOS*) ld="${CC9:-cc} -g"
|
||||||
extralibs="$extralibs -lrt -lpthread -lsocket -lnsl"
|
extralibs="$extralibs -lrt -lpthread -lsocket -lnsl"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue