config/global/extract.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jul 31 09:08:33 2008 +0000 (2008-07-31)
changeset 752 b037a5643e04
child 1510 0d601781661d
permissions -rw-r--r--
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 # Options specific to extracting packages
     2 
     3 comment "Extracting"
     4 
     5 config FORCE_EXTRACT
     6     bool
     7     prompt "Force extractions"
     8     default n
     9     help
    10       Force extraction of already exctracted tarballs.
    11       
    12       Usefull if you suspect a previous extract did not complete (eg. broken
    13       tarball), or you added a new set of patches for this component.
    14 
    15 config OVERIDE_CONFIG_GUESS_SUB
    16     bool
    17     prompt "Override config.{guess,sub}"
    18     default y
    19     help
    20       Override tools' versions of config.guess and config.sub with the ones
    21       from crosstool-NG. This means that all instances of config.guess and
    22       config.sub in gcc, binutils, glibc, etc... will be replaced.
    23 
    24       Most of the time, the versions of those scripts found in packages are old
    25       versions, thus lacking some target definitions. This is the case for
    26       uClibc-based tuples in old versions of gcc and gdb, for example.
    27 
    28       Also, doing so will guarantee that all components have the same tuples
    29       definitions for your target, and not diverging ones.
    30 
    31       You can update the ones provided with crosstool-NG by first running:
    32         ct-ng updatetools
    33       in the directory where you want to run crosstool-NG prior to the build.
    34 
    35 config ONLY_EXTRACT
    36     bool
    37     prompt "Stop after extracting tarballs"
    38     default n
    39     help
    40       Exit after unpacking and patching tarballs.
    41       
    42       Usefull to look at the code before doing the build itself.