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 diff -u binutils-2.18-orig/configure binutils-2.18/configure
2 --- binutils-2.18-orig/configure 2007-08-06 16:29:40.000000000 -0400
3 +++ binutils-2.18/configure 2007-09-27 22:41:51.000000000 -0400
4 @@ -6125,10 +6125,10 @@
5 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8 - # For an installed makeinfo, we require it to be from texinfo 4.4 or
9 + # For an installed makeinfo, we require it to be from texinfo 4.6 or
10 # higher, else we use the "missing" dummy.
11 if ${MAKEINFO} --version \
12 - | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
13 + | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
16 MAKEINFO="$MISSING makeinfo"