config/companion_libs/cloog.in
author Bryan Hundven <bryanhundven@gmail.com>
Sun Jun 26 03:26:54 2011 -0700 (2011-06-26)
changeset 2515 364b06df9e3a
parent 2206 2b5f5173daa0
child 2758 47199f966983
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@1380
     1
# CLooG options
yann@1380
     2
yann@1380
     3
choice
yann@1380
     4
    bool
yann@1380
     5
    prompt "CLooG/ppl version"
yann@1535
     6
# Don't remove next line
yann@1535
     7
# CT_INSERT_VERSION_BELOW
yann@1380
     8
yann@2435
     9
config CLOOG_V_0_15_11
yann@2435
    10
    bool
yann@2435
    11
    prompt "0.15.11 (EXPERIMENTAL)"
yann@2435
    12
    depends on EXPERIMENTAL
yann@2435
    13
yann@2157
    14
config CLOOG_V_0_15_10
yann@2157
    15
    bool
yann@2157
    16
    prompt "0.15.10"
yann@2157
    17
yann@1873
    18
config CLOOG_V_0_15_9
yann@1873
    19
    bool
yann@1873
    20
    prompt "0.15.9"
yann@1873
    21
yann@1873
    22
config CLOOG_V_0_15_8
yann@1873
    23
    bool
yann@1873
    24
    prompt "0.15.8"
yann@1873
    25
yann@1534
    26
config CLOOG_V_0_15_7
yann@1380
    27
    bool
yann@1534
    28
    prompt "0.15.7"
yann@1534
    29
yann@1534
    30
config CLOOG_V_0_15_6
yann@1534
    31
    bool
yann@1534
    32
    prompt "0.15.6"
yann@1534
    33
yann@1380
    34
endchoice
yann@1380
    35
yann@1380
    36
config CLOOG_VERSION
yann@1380
    37
    string
yann@1535
    38
# Don't remove next line
yann@1535
    39
# CT_INSERT_VERSION_STRING_BELOW
yann@2435
    40
    default "0.15.11" if CLOOG_V_0_15_11
yann@2157
    41
    default "0.15.10" if CLOOG_V_0_15_10
yann@1873
    42
    default "0.15.9" if CLOOG_V_0_15_9
yann@1873
    43
    default "0.15.8" if CLOOG_V_0_15_8
yann@1534
    44
    default "0.15.7" if CLOOG_V_0_15_7
yann@1534
    45
    default "0.15.6" if CLOOG_V_0_15_6
yann@1534
    46
    default "0.15.5" if CLOOG_V_0_15_5
yann@1534
    47
    default "0.15.4" if CLOOG_V_0_15_4
yann@1380
    48
    default "0.15.3" if CLOOG_V_0_15_3