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 Use printf instead of echo for some shells.
3 http://www.cygwin.com/ml/libc-alpha/2005-02/msg00123.html
5 This patch does not generate invalid csu/version-info.h which has
6 unterminating " line because some /bin/sh cannot parse correctly. The
7 previous discussion was:
9 http://sources.redhat.com/ml/libc-alpha/2004-08/msg00129.html
10 http://sources.redhat.com/ml/libc-alpha/2004-08/msg00145.html
12 This patch gets rid of all this issue because the conclusion of the
13 discussion was to use printf instead of echo. Roland, could you look
19 2005-02-26 GOTO Masanori <gotom@debian.or.jp>
21 * csu/Makefile: Use printf instead of echo for some shells.
24 ===================================================================
25 RCS file: /cvs/glibc/libc/csu/Makefile,v
26 retrieving revision 1.75
27 diff -u -p -r1.75 Makefile
28 --- glibc/csu/Makefile 3 Jan 2005 17:57:14 -0000 1.75
29 +++ glibc.new/csu/Makefile 27 Feb 2005 01:17:49 -0000
30 @@ -241,7 +241,7 @@ $(objpfx)version-info.h: $(common-objpfx
32 files="$(all-Banner-files)"; \
33 if test -n "$$files"; then \
34 - echo "\"Available extensions:\\n\""; \
35 + printf '"Available extensions:\\n"\n'; \
36 sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \
37 -e 's/^\(.*\)$$/\"\1\\n\"/' $$files; \