--- uclibc-0.9.30_rc1.ebuild 2008-10-16 10:27:28.000000000 +0200 +++ uclibc-0.9.30_rc1.ebuild 2008-10-16 10:27:17.000000000 +0200 @@ -67,7 +67,7 @@ uclibc_endian() { # XXX: this wont work for a toolchain which is bi-endian, but we # dont have any such thing at the moment, so not a big deal touch "${T}"/endian.s - $(tc-getAS) "${T}"/endian.s -o "${T}"/endian.o + $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o case $(file "${T}"/endian.o) in *" MSB "*) echo "big";; *" LSB "*) echo "little";;