aboutsummaryrefslogtreecommitdiff
path: root/bin/9l
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-13 04:49:19 +0000
committerrsc <devnull@localhost>2005-01-13 04:49:19 +0000
commitc8b6342d3c2a167dec16931815926e9e4387e7ef (patch)
tree80d3ec6ea074462b30639168113def880476dad6 /bin/9l
parent741f510ce758f77ed5193256fb693a09a7daecce (diff)
downloadplan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.gz
plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.bz2
plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.zip
Many small edits.
Diffstat (limited to 'bin/9l')
-rwxr-xr-xbin/9l13
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/9l b/bin/9l
index 087cda3d..39e6eb1a 100755
--- a/bin/9l
+++ b/bin/9l
@@ -91,6 +91,7 @@ then
do
eval "have$i() { false; }"
done
+ havethread() { false; }
# now find correct order
libsl=""
@@ -129,6 +130,12 @@ then
fi
libsl="$libsl -l9"
+ # cycle: lib9 expects p9main, which is defined in libthread. oops.
+ if $havethread
+ then
+ libsl="$libsl -lthread"
+ fi
+
if [ "x$needdraw" = xtrue ]
then
if [ "x$X11" = "x" ]
@@ -194,9 +201,11 @@ if $verbose
then
echo $ld -L$PLAN9/lib "$@" $libsl $extralibs
fi
-if ! $ld -L$PLAN9/lib "$@" $libsl $extralibs
+if $ld -L$PLAN9/lib "$@" $libsl $extralibs
then
+ exit 0
+else
rm -f $target
exit 1
fi
-exit 0
+