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(-)
7 prompt "C compiler flavour"
14 select CC_SUPPORT_FORTRAN
15 select CC_SUPPORT_JAVA
17 select CC_SUPPORT_OBJC
18 select CC_SUPPORT_OBJCXX
20 gcc is the full-blown GNU compiler. This is what most people will choose.
22 gcc supports many languages, a powerful code parser, optimised binary
23 output, and lots of other features.
32 default "gcc" if CC_GCC
35 source config/cc/gcc.in
41 config CC_SUPPORT_FORTRAN
44 config CC_SUPPORT_JAVA
50 config CC_SUPPORT_OBJC
53 config CC_SUPPORT_OBJCXX
56 comment "Additional supported languages:"
62 depends on CC_SUPPORT_CXX
64 Enable building a C++ compiler.
66 Only select this if you know that your specific version of the
67 compiler supports this language.
69 config CC_LANG_FORTRAN
73 depends on CC_SUPPORT_FORTRAN
75 Enable building a FORTRAN compiler.
77 Only select this if you know that your specific version of the
78 compiler supports this language.
84 depends on CC_SUPPORT_JAVA
86 Enable building a Java compiler.
88 Only select this if you know that your specific version of the
89 compiler supports this language.
95 depends on CC_SUPPORT_ADA
97 Enable building an Ada compiler.
99 Only select this if you know that your specific version of the
100 compiler supports this language.
106 depends on CC_SUPPORT_OBJC
108 Enable building an Objective C compiler.
110 Only select this if you know that your specific version of the
111 compiler supports this language.
113 config CC_LANG_OBJCXX
115 prompt "Objective-C++"
117 depends on CC_SUPPORT_OBJCXX
119 Enable building an Objective C++ compiler.
121 Only select this if you know that your specific version of the
122 compiler supports this language.
124 config CC_LANG_OTHERS
126 prompt "Other languages"
129 Enter here a comma-separated list of languages that you know your compiler
130 supports, besides those listed above.
132 Eg. gcc-4.1+ has a toy programming language, treelang. As it is not usefull
133 in real life, it is not available in the selection above.