When using custom spec files, such as the one I suggest for forced --as-needed support, the collect2 command line changes, causing the line local linker=$($(tc-getCC) --help -v 2>&1 >/dev/null | grep '\-dynamic\-linker' | cut -f7 -d' ') to be simply totally broken (it's no longer the 7th argument but the 8th). In general you should *not* rely on this at all! You probably want something like this: local linker=$($(tc-getCC) --help -v 2>&1 >/dev/null | sed -n -e '/dynamic-linker/s:.* -dynamic-linker \([^ ]\+\) .*:\1:p') which is at least resilient to changes in the commandline. It still is tremendously fragile.
+ 31 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> + path64-1.0.0_pre20110729.ebuild: + Make search for linker more resilient. Fixes bug 377111. Thanks to Diego Elio + Pettenò <flameeyes@gentoo.org>