This commit is contained in:
rsc 2005-01-07 18:06:47 +00:00
parent 21621d7e20
commit 7d0dbb314f

25
bin/9l
View file

@ -136,13 +136,25 @@ fi
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 -lutil -lpthread" 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" extralibs="$extralibs -lutil"
;; ;;
*Linux*) ld=gcc *Linux*)
ld=gcc
extralibs="$extralibs -lutil" extralibs="$extralibs -lutil"
case "`uname -r`" in case "`uname -r`" in
2.6.*) 2.6.*)
@ -150,8 +162,11 @@ case "$tag" in
;; ;;
esac esac
;; ;;
*Darwin*) ld=gcc ;; *Darwin*)
*SunOS*) ld="${CC9:-cc} -g" ld=gcc
;;
*SunOS*)
ld="${CC9:-cc} -g"
extralibs="$extralibs -lrt -lpthread -lsocket -lnsl" extralibs="$extralibs -lrt -lpthread -lsocket -lnsl"
# Record paths to shared libraries to avoid needing LD_LIBRARY_PATH # Record paths to shared libraries to avoid needing LD_LIBRARY_PATH
for i in "$@" for i in "$@"