diff options
author | rsc <devnull@localhost> | 2005-01-13 04:49:19 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-13 04:49:19 +0000 |
commit | c8b6342d3c2a167dec16931815926e9e4387e7ef (patch) | |
tree | 80d3ec6ea074462b30639168113def880476dad6 /bin/9l | |
parent | 741f510ce758f77ed5193256fb693a09a7daecce (diff) | |
download | plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.gz plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.bz2 plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.zip |
Many small edits.
Diffstat (limited to 'bin/9l')
-rwxr-xr-x | bin/9l | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 + |