diff options
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 + |