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 --- dmalloc-5.5.2.orig/configure 2008-06-17 13:10:09.000000000 +0200
2 +++ dmalloc-5.5.2/configure 2008-06-17 13:11:25.000000000 +0200
4 echo "$as_me:$LINENO: checking strdup macro" >&5
5 echo $ECHO_N "checking strdup macro... $ECHO_C" >&6
6 if test "$cross_compiling" = yes; then
7 - ac_cv_strdup_macro=no
8 + cat >conftest.$ac_ext <<_ACEOF
11 +cat confdefs.h >>conftest.$ac_ext
12 +cat >>conftest.$ac_ext <<_ACEOF
13 +/* end confdefs.h. */
26 +rm -f conftest.o conftest.obj
27 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28 + (eval $ac_compile) 2>&5
30 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31 + (exit $ac_status); }; then
32 + ac_cv_strdup_macro=yes
34 + ac_cv_strdup_macro=no
38 cat >conftest.$ac_ext <<_ACEOF