Have the glibc build use the cross-objdump, rather than the host one.
On some distros (eg. Fedora), the native objdump can not interpret objects not for the native system, and thus fail.
This commit adds a new patch against glibc-2.7 that introduces OBJDUMP_FOR_HOST, wich, if set, overides the detected objdump.
Note: bizarely enough, glibc already has code to detect the cross-objdump, but that does not work for an unknown reason... :-(
/trunk/patches/glibc/2.7/220-objdump_for_host.patch | 13 13 0 0 +++++++++
/trunk/scripts/build/libc_glibc.sh | 37 21 16 0 +++++++++++++++------------
2 files changed, 34 insertions(+), 16 deletions(-)
1 # GMP and MPFR libraries config options
9 Recent gcc needs both GMP and MPFR to build some frontends.
11 Say 'Y' here if you want to build those two libraries specifically
14 The packages that can use GMP and MPFR are:
19 config GMP_MPFR_TARGET
21 prompt "Build libraries for the target"
25 Also build libraries for the target. This can be usefull if you want
26 to later build a compiler that will run on the target, or if you want
27 to run gdb natively on the target.
30 source config/gmp_mpfr/gmp.in
31 source config/gmp_mpfr/mpfr.in