https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69839
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That is the bug then. The linker doesn't search for DT_NEEDED shared libraries in the -L directories, but in the -rpath{,-link} ones, or in the standard directories (which for the sysroot would be /usr/powerpc-g2.20-linux-gnu/lib/ and /usr/powerpc-g2.20-linux-gnu/usr/lib/