-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Donnie Berkholz wrote: | Ciaran McCreesh wrote: | | Hrmmmmm. Is this going to be sanely doable by your average dev? How long | | a dep string would we be having in typical cases? How about in bad | | cases? | | It shouldn't be difficult in most cases, for those capable of finding | linker lines in a build. | | I wrote a quick one-liner that works reasonably well on a couple of | tests, but could use a little tweaking. Just set log to your build log | beforehand. | | for linkline in $(grep ' \-l[a-zA-Z]' ${log}); do if [[ "${linkline}" =~ | "-l[a-zA-Z]" ]]; then echo $linkline; fi; done | sort | uniq
Here's a slightly better version: for linkline in $(grep ' \-l[a-zA-Z]' ${log}); do if [[ "${linkline}" = - -l[a-zA-Z]* ]]; then echo $linkline; fi; done | sort | uniq Donnie -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC+W4pXVaO67S1rtsRAmF+AKC5bNS6ZbxU6nlCJUG44VhBeC+w1ACgvziz BrqUPIlvWnp0sx2MVM6A82M= =VtA+ -----END PGP SIGNATURE----- -- gentoo-dev@gentoo.org mailing list