aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-14 04:24:09 +0000
committerrsc <devnull@localhost>2005-01-14 04:24:09 +0000
commit359c1e017ee367c34b082b1b4e6c002686d01bce (patch)
tree84b17b7a46cc9c7ec00a206ec5d4c2159a1b4927 /bin
parent78e51a8c6678b6e3dff3d619aa786669f531f4bc (diff)
downloadplan9port-359c1e017ee367c34b082b1b4e6c002686d01bce.tar.gz
plan9port-359c1e017ee367c34b082b1b4e6c002686d01bce.tar.bz2
plan9port-359c1e017ee367c34b082b1b4e6c002686d01bce.zip
works on Linux 2.6
Diffstat (limited to 'bin')
-rwxr-xr-xbin/9l12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/9l b/bin/9l
index 39e6eb1a..62e106e2 100755
--- a/bin/9l
+++ b/bin/9l
@@ -27,7 +27,7 @@ then
for i
do
case "$i" in
- *.o)
+ *.[ao])
ofiles="$ofiles $i"
;;
esac
@@ -58,11 +58,15 @@ then
workq=""
for i in $w
do
+ # can't trust the libraries about using
+ # libthread - we might not be linking with
+ # those object files.
a=`
nm $PLAN9/lib/lib$i.a |
grep '__p9l_autolib_[a-zA-Z0-9+-]*$' |
sed 's/.*__p9l_autolib_//' |
- sort -u
+ sort -u |
+ grep -v thread
`
okayfn="true"
for j in $a
@@ -131,9 +135,9 @@ then
libsl="$libsl -l9"
# cycle: lib9 expects p9main, which is defined in libthread. oops.
- if $havethread
+ if havethread
then
- libsl="$libsl -lthread"
+ libsl="$libsl -lthread -l9"
fi
if [ "x$needdraw" = xtrue ]