config/libc/mingw.in.2
author Bryan Hundven <bryanhundven@gmail.com>
Sun Jun 26 03:26:54 2011 -0700 (2011-06-26)
changeset 2515 364b06df9e3a
parent 2018 860de6018501
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>
     1 # Part-2 of mingw C library options: development libraries
     2 
     3 config MINGW_DIRECTX
     4     bool
     5     prompt "Include DirectX development files"
     6 
     7 config MINGW_OPENGL
     8     bool
     9     prompt "Include OpenGL development files"
    10 
    11 config MINGW_PDCURSES
    12     bool
    13     prompt "Include PDCurses (NCurses library) development files"
    14 
    15 choice
    16     bool
    17     prompt "PDCurses library version"
    18     depends on MINGW_PDCURSES
    19 
    20 config MINGW_PDCURSES_V_3_4
    21     bool
    22     prompt "3.4"
    23 
    24 # CT_INSERT_VERSION_ABOVE
    25 # Don't remove above line!
    26 
    27 config MINGW_PDCURSES_V_select
    28     bool
    29     prompt "Other version"
    30 
    31 endchoice
    32 
    33 config MINGW_PDCURSES_VERSION
    34     string
    35     prompt "PDCurses library version" if MINGW_PDCURSES_V_select
    36     default "3.4" if MINGW_PDCURSES_V_3_4
    37 # CT_INSERT_VERSION_STRING_ABOVE
    38 # Don't remove above line!
    39     help
    40       Enter the version number of the PDCurses library to use
    41 
    42 config MINGW_GNURX
    43     bool
    44     prompt "Include GnuRX (regex library) development files"
    45 
    46 choice
    47     bool
    48     prompt "GnuRX library version"
    49     depends on MINGW_GNURX
    50 
    51 config MINGW_GNURX_V_2_5_1
    52     bool
    53     prompt "2.5.1"
    54 
    55 # CT_INSERT_VERSION_ABOVE
    56 # Don't remove above line!
    57 
    58 config MINGW_GNURX_V_select
    59     bool
    60     prompt "Other version"
    61 
    62 endchoice
    63 
    64 config MINGW_GNURX_VERSION
    65     string
    66     prompt "GnuRX library version" if MINGW_GNURX_V_select
    67     default "2.5.1" if MINGW_GNURX_V_2_5_1
    68 # CT_INSERT_VERSION_STRING_ABOVE
    69 # Don't remove above line!
    70     help
    71       Enter the version number of the Regex library to use
    72