config/debug/strace.in
author Bryan Hundven <bryanhundven@gmail.com>
Sun Jun 26 03:26:54 2011 -0700 (2011-06-26)
changeset 2515 364b06df9e3a
parent 2006 f15068f8ae3b
child 2733 3362c64f4b6c
permissions -rw-r--r--
glibc: Refactor startfiles/headers into do_libc_backend()

Refactor the contents of 'do_libc_start_files()' and 'do_libc()' into a
parameterized 'do_libc_backend()'. 'do_libc_start_files()' and 'do_libc()'
call 'do_libc_backend()' with either 'libc_mode=startfiles' or
'libc_mode=final' (respectively) so that the startfiles/headers and
the final libc builds are configured and built with the same options.

One example of where this is needed is when building a mips toolchain.
Previously, if you were building an n32 toolchain, you wouldn't have
noticed an issue, because if '-mabi' is not in CFLAGS, n32 is the
default:

http://sourceware.org/git/?p=glibc-ports.git;a=blob;f=sysdeps/mips/preconfigure;hb=HEAD

But when trying to build an o32 or n64 toolchain the build would
have failed. This is because (e)glibc expects "-mabi={o32,n32,n64}" to be
in CFLAGS, but was not previously provided in 'do_libc_start_files()'.
The build failure would happen in the shared-core gcc when it tries to
configure an n64 or o32 gcc with an n32 libc.

A simpler solution would have been to just add TARGET_CFLAGS to configure
in 'do_libc_start_files()', but this way makes configure and make
consistent for both steps.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
yann@239
     1
# strace
yann@239
     2
yann@2444
     3
## depends on ! BACKEND
yann@239
     4
yann@239
     5
choice
yann@239
     6
    bool
yann@239
     7
    prompt "strace version"
yann@1535
     8
# Don't remove next line
yann@1535
     9
# CT_INSERT_VERSION_BELOW
yann@239
    10
yann@2006
    11
config STRACE_V_4_5_20
yann@2006
    12
    bool
yann@2006
    13
    prompt "4.5.20 (EXPERIMENTAL)"
yann@2006
    14
    depends on EXPERIMENTAL
yann@2006
    15
yann@1613
    16
config STRACE_V_4_5_19
yann@1613
    17
    bool
yann@1785
    18
    prompt "4.5.19"
yann@1613
    19
yann@1534
    20
config STRACE_V_4_5_18
yann@239
    21
    bool
yann@1613
    22
    prompt "4.5.18"
yann@1534
    23
yann@1534
    24
config STRACE_V_4_5_17
yann@1534
    25
    bool
yann@1615
    26
    prompt "4.5.17 (OBSOLETE)"
yann@1615
    27
    depends on OBSOLETE
yann@1534
    28
yann@1534
    29
config STRACE_V_4_5_16
yann@1534
    30
    bool
yann@1615
    31
    prompt "4.5.16 (OBSOLETE)"
yann@1615
    32
    depends on OBSOLETE
yann@1534
    33
yann@1534
    34
config STRACE_V_4_5_15
yann@1534
    35
    bool
yann@1615
    36
    prompt "4.5.15 (OBSOLETE)"
yann@1615
    37
    depends on OBSOLETE
yann@239
    38
yann@239
    39
endchoice
yann@239
    40
yann@239
    41
config STRACE_VERSION
yann@239
    42
    string
yann@1535
    43
# Don't remove next line
yann@1535
    44
# CT_INSERT_VERSION_STRING_BELOW
yann@2006
    45
    default "4.5.20" if STRACE_V_4_5_20
yann@1613
    46
    default "4.5.19" if STRACE_V_4_5_19
yann@1534
    47
    default "4.5.18" if STRACE_V_4_5_18
yann@1534
    48
    default "4.5.17" if STRACE_V_4_5_17
yann@1534
    49
    default "4.5.16" if STRACE_V_4_5_16
yann@1534
    50
    default "4.5.15" if STRACE_V_4_5_15