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(-)
5 prompt "uClibc version"
9 prompt "latest snapshot (EXPERIMENTAL)"
10 depends on EXPERIMENTAL
12 config LIBC_V_specific_date
14 prompt "<specific date> (EXPERIMENTAL)"
15 depends on EXPERIMENTAL
19 prompt "0.9.28 (OBSOLETE)"
22 config LIBC_V_0_9_28_1
24 prompt "0.9.28.1 (OBSOLETE)"
27 config LIBC_V_0_9_28_2
29 prompt "0.9.28.2 (OBSOLETE)"
32 config LIBC_V_0_9_28_3
40 # CT_INSERT_VERSION_ABOVE
41 # Don't remove above line!
46 prompt "Enter date (YYYYMMDD)" if LIBC_V_specific_date
47 default "snapshot" if LIBC_V_snapshot
48 default "0.9.28" if LIBC_V_0_9_28
49 default "0.9.28.1" if LIBC_V_0_9_28_1
50 default "0.9.28.2" if LIBC_V_0_9_28_2
51 default "0.9.28.3" if LIBC_V_0_9_28_3
52 default "0.9.29" if LIBC_V_0_9_29
53 # CT_INSERT_VERSION_STRING_ABOVE
54 # Don't remove above line!
58 prompt "uClibc verbosity:"
59 default LIBC_UCLIBC_VERBOSITY_0
61 config LIBC_UCLIBC_VERBOSITY_0
65 Print simplified command lines.
67 config LIBC_UCLIBC_VERBOSITY_1
69 prompt "Full commands"
71 Print full command lines.
75 config LIBC_UCLIBC_VERBOSITY
77 default "" if LIBC_UCLIBC_VERBOSITY_0
78 default "V=1" if LIBC_UCLIBC_VERBOSITY_1
83 default LIBC_UCLIBC_DEBUG_LEVEL_0
85 config LIBC_UCLIBC_DEBUG_LEVEL_0
89 config LIBC_UCLIBC_DEBUG_LEVEL_1
93 config LIBC_UCLIBC_DEBUG_LEVEL_2
99 config LIBC_UCLIBC_DEBUG_LEVEL
101 default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
102 default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
103 default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
105 config LIBC_UCLIBC_CONFIG_FILE
107 prompt "Configuration file"
110 Path to the configuration file.
112 You _must_ provide one (for now).
114 config LIBC_UCLIBC_LOCALES
116 prompt "Add support for locales"
119 Say y if you want uClibc to support localisation.
121 Note that seems to be broken on recent uClibc releases.