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 This patch makes building the shared library possible.
3 Copyright 2007 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
4 Licensed to you as dmalloc-5.5.2 is.
6 diff -dur dmalloc-5.5.2.orig/Makefile.in dmalloc-5.5.2/Makefile.in
7 --- dmalloc-5.5.2.orig/Makefile.in 2007-05-14 19:26:14.000000000 +0200
8 +++ dmalloc-5.5.2/Makefile.in 2007-05-18 15:54:04.000000000 +0200
10 # via: http://256.com/gray/email.html
11 $(LIB_SL) : $(LIBRARY)
13 - @shlinkargs@ $(LIBRARY) $(OBJS) $(NORMAL_OBJS)
14 + @shlinkargs@ $(LIBRARY)
17 $(LIBRARY) : $(OBJS) $(NORMAL_OBJS)
20 $(LIB_TH_SL) : $(LIB_TH)
22 - @shlinkargs@ $(LIB_TH) $(OBJS) $(THREAD_OBJS)
23 + @shlinkargs@ $(LIB_TH)
26 $(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
29 $(LIB_CXX_SL) : $(LIB_CXX)
31 - @shlinkargs@ $(LIB_CXX) $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
32 + @shlinkargs@ $(LIB_CXX)
35 $(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
38 $(LIB_TH_CXX_SL) : $(LIB_TH_CXX)
40 - @shlinkargs@ $(LIB_TH_CXX) $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
41 + @shlinkargs@ $(LIB_TH_CXX)
44 threadssl : $(LIB_TH_SL)