aboutsummaryrefslogtreecommitdiff
path: root/bin/9l
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-19 00:25:38 +0000
committerrsc <devnull@localhost>2005-01-19 00:25:38 +0000
commit108559b2d7fc6195b3b72cec2409718937c76b82 (patch)
tree1cad3448043eccde94a6b9f0f098c34825dfa868 /bin/9l
parent803292c631c8e80a0596a011a901e72c8e0e0edc (diff)
downloadplan9port-108559b2d7fc6195b3b72cec2409718937c76b82.tar.gz
plan9port-108559b2d7fc6195b3b72cec2409718937c76b82.tar.bz2
plan9port-108559b2d7fc6195b3b72cec2409718937c76b82.zip
do not use rpath on Darwin
Diffstat (limited to 'bin/9l')
-rwxr-xr-xbin/9l8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/9l b/bin/9l
index c10c11e8..3fea275c 100755
--- a/bin/9l
+++ b/bin/9l
@@ -161,10 +161,12 @@ tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
case "$tag" in
*OpenBSD*)
ld=gcc
+ userpath=true
extralibs="$extralibs -lutil -lpthread"
;;
*FreeBSD*)
ld=gcc
+ userpath=true
extralibs="$extralibs -lutil"
case "`uname -r`" in
[5-9].*)
@@ -174,10 +176,12 @@ case "$tag" in
;;
*BSD*)
ld=gcc
+ userpath=true
extralibs="$extralibs -lutil"
;;
*Linux*)
ld=gcc
+ userpath=true
extralibs="$extralibs -lutil"
case "${SYSVERSION:-`uname -r`}" in
2.6.*)
@@ -207,8 +211,8 @@ case "$tag" in
exit 1
esac
-case "$ld" in
-gcc)
+case "$userpath" in
+true)
for i in "$libsl $@"
do
case "$i" in