Bug#553047: libc6: (cross) libc-2.10.1.so/powerpc: ELF file data
Hello,
I could build cross gcc 4.4.5-4 with attached patch
(only tested for GCC_TARGET=powerpcspe, though).
Shouldn't we stop tweaking LD_LIBRARY_PATH to cross-build gcc?
* rationale
In my understanding, the error message:
> error while loading shared libraries:
/usr/powerpc-linux-gnu/lib/libc.so.6: ELF file data encoding not
little-endian
means:
"failed to load the Perl interpreter
with $LD_LIBRARY_PATH/libc.so instead of /lib/libc.so".
Fortunately, recent versions of dpkg-shlibdeps seems to be
wise enough to detect GCC_TARGET and DEB_TARGET_GNU_TYPE
and we no longer have to tell dh_shlibdeps where to search
libraries using a special environment variable.