mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
draw, resolv
This commit is contained in:
parent
4c7f9f8303
commit
866a7d1f26
1 changed files with 9 additions and 3 deletions
12
bin/9l
12
bin/9l
|
@ -62,14 +62,14 @@ then
|
||||||
for i in $w
|
for i in $w
|
||||||
do
|
do
|
||||||
# can't trust the libraries about using
|
# can't trust the libraries about using
|
||||||
# libthread - we might not be linking with
|
# libthread or libdraw - we might not be linking with
|
||||||
# those object files.
|
# those object files.
|
||||||
a=`
|
a=`
|
||||||
nm $PLAN9/lib/lib$i.a 2>/dev/null |
|
nm $PLAN9/lib/lib$i.a 2>/dev/null |
|
||||||
grep '__p9l_autolib_[a-zA-Z0-9+-]*$' |
|
grep '__p9l_autolib_[a-zA-Z0-9+-]*$' |
|
||||||
sed 's/.*__p9l_autolib_//' |
|
sed 's/.*__p9l_autolib_//' |
|
||||||
sort -u |
|
sort -u |
|
||||||
grep -v thread
|
egrep -v 'thread|draw'
|
||||||
`
|
`
|
||||||
okayfn="true"
|
okayfn="true"
|
||||||
for j in $a
|
for j in $a
|
||||||
|
@ -150,6 +150,11 @@ then
|
||||||
libsl="$libsl -lsec -l9"
|
libsl="$libsl -lsec -l9"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "x$needndb" = xtrue -a -f /usr/lib/libresolv.a ]
|
||||||
|
then
|
||||||
|
libsl="$libsl -lresolv"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "x$needdraw" = xtrue -a "x$WSYSTYPE" != xnowsys ]
|
if [ "x$needdraw" = xtrue -a "x$WSYSTYPE" != xnowsys ]
|
||||||
then
|
then
|
||||||
if [ "x$X11" = "x" ]
|
if [ "x$X11" = "x" ]
|
||||||
|
@ -297,7 +302,8 @@ fi
|
||||||
|
|
||||||
xtmp=/tmp/9l.$$.$USER.out
|
xtmp=/tmp/9l.$$.$USER.out
|
||||||
xxout() {
|
xxout() {
|
||||||
egrep -v 'is almost always misused|: In function `' $xtmp
|
sed 's/.*: In function `[^:]*: *//' $xtmp | egrep . |
|
||||||
|
egrep -v 'is almost always misused' $xtmp
|
||||||
rm -f $xtmp
|
rm -f $xtmp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue