config/debug/strace.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
parent 330 447b203edc2e
child 850 ef8549b58b6f
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 # strace
     2 
     3 menuconfig STRACE
     4     bool
     5     prompt "strace"
     6     default n
     7 
     8 if STRACE
     9 
    10 choice
    11     bool
    12     prompt "strace version"
    13 
    14 config STRACE_V_4_5
    15     bool
    16     prompt "4.5 (OBSOLETE)"
    17     depends on OBSOLETE
    18 
    19 config STRACE_V_4_5_14
    20     bool
    21     prompt "4.5.14 (OBSOLETE)"
    22     depends on OBSOLETE
    23 
    24 config STRACE_V_4_5_15
    25     bool
    26     prompt "4.5.15"
    27 
    28 config STRACE_V_4_5_16
    29     bool
    30     prompt "4.5.16"
    31 
    32 # CT_INSERT_VERSION_ABOVE
    33 # Don't remove above line!
    34 endchoice
    35 
    36 config STRACE_VERSION
    37     string
    38     default "4.5" if STRACE_V_4_5
    39     default "4.5.14" if STRACE_V_4_5_14
    40     default "4.5.15" if STRACE_V_4_5_15
    41     default "4.5.16" if STRACE_V_4_5_16
    42 # CT_INSERT_VERSION_STRING_ABOVE
    43 # # Don't remove above line!
    44 
    45 endif