scripts/trylink: be more clever when deciding that "lib elimination" has finished:
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 19 Nov 2018 19:36:16 +0000 (20:36 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 19 Nov 2018 19:36:16 +0000 (20:36 +0100)
commit32511da87ddaea0824801eafebd27e11409bf444
tree5980e45101756c9da2fce77c0d33b7dc9a3c822f
parent4e46b98a4574aee0a77055741d460016faa11b75
scripts/trylink: be more clever when deciding that "lib elimination" has finished:

Before:
Trying libraries: crypt m resolv
 Library crypt is not needed, excluding it
 Library m is needed, can't exclude it (yet)
 Library resolv is needed, can't exclude it (yet)
 Library m is needed, can't exclude it (yet)
 Library resolv is needed, can't exclude it (yet)
Final link with: m resolv

After:
Trying libraries: crypt m resolv
 Library crypt is not needed, excluding it
 Library m is needed, can't exclude it (yet)
 Library resolv is needed, can't exclude it (yet)
Final link with: m resolv

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/trylink