mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
freebsd5
This commit is contained in:
parent
21621d7e20
commit
7d0dbb314f
1 changed files with 39 additions and 24 deletions
25
bin/9l
25
bin/9l
|
@ -136,13 +136,25 @@ fi
|
|||
extralibs="-lm"
|
||||
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
|
||||
case "$tag" in
|
||||
*OpenBSD*) ld=gcc
|
||||
*OpenBSD*)
|
||||
ld=gcc
|
||||
extralibs="$extralibs -lutil -lpthread"
|
||||
;;
|
||||
*BSD*) ld=gcc
|
||||
*FreeBSD*)
|
||||
ld=gcc
|
||||
extralibs="$extralibs -lutil"
|
||||
case "`uname -r`" in
|
||||
[5-9].*)
|
||||
extralibs="$extralibs -lpthread"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*BSD*)
|
||||
ld=gcc
|
||||
extralibs="$extralibs -lutil"
|
||||
;;
|
||||
*Linux*) ld=gcc
|
||||
*Linux*)
|
||||
ld=gcc
|
||||
extralibs="$extralibs -lutil"
|
||||
case "`uname -r`" in
|
||||
2.6.*)
|
||||
|
@ -150,8 +162,11 @@ case "$tag" in
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
*Darwin*) ld=gcc ;;
|
||||
*SunOS*) ld="${CC9:-cc} -g"
|
||||
*Darwin*)
|
||||
ld=gcc
|
||||
;;
|
||||
*SunOS*)
|
||||
ld="${CC9:-cc} -g"
|
||||
extralibs="$extralibs -lrt -lpthread -lsocket -lnsl"
|
||||
# Record paths to shared libraries to avoid needing LD_LIBRARY_PATH
|
||||
for i in "$@"
|
||||
|
|
Loading…
Reference in a new issue