--- toolchain-funcs.eclass~ 2012-09-28 15:31:15.000000000 +0000 +++ toolchain-funcs.eclass 2012-10-06 23:36:26.892500933 +0000 @@ -636,7 +636,7 @@ gen_usr_ldscript() { # OUTPUT_FORMAT gives hints to the linker as to what binary format # is referenced ... makes multilib saner - output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p') + output_format=$($(tc-getCC) $(get_abi_CFLAGS) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p') [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )" for lib in "$@" ; do