config/libc/mingw.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 12 23:51:25 2010 +0200 (2010-09-12)
changeset 2123 ff2181adbd28
child 2444 896cb0d36c1a
permissions -rw-r--r--
cc/gcc: disable complibs if not selected

Force gcc to not link with some companion libraries when
there are not needed (because selected-out).

There is no option to tell gcc *not* to build the Graphite and/or
LTO stuff. They *will* be built if gcc finds the suitable companion
libraries. If we do not provide them, but the host has them, then
gcc *will* find them, and link with them.

Consider the following:
- host has suitable PPL and CLooG (eg. Debian Squeeze)
- user wants to build gcc>=4.4
- user de-selects GRAPHITE
- gcc will find the hosts PPL and CLooG, and will use them
- the user moves the toolchain to an older host that does
not have them (eg. Debian Lenny)
- the toolchain fails, when it was properly setup not to

So, explicitly tell gcc *not* to use unneeded companion libs.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # mingw options
     2 # depends on MINGW32
     3 
     4 config LIBC_mingw
     5     bool
     6     select LIBC_SUPPORT_WIN32THREADS
     7     help
     8       The de-facto standard for Mingw distributions.
     9 
    10 choice
    11     bool
    12     prompt "Mingw runtime version"
    13 
    14 # Don't remove next line
    15 # CT_INSERT_VERSION_BELOW
    16 config MINGWRT_V_3_18
    17     bool
    18     prompt "3.18"
    19 
    20 config MINGWRT_V_select
    21     bool
    22     prompt "Other version"
    23 
    24 endchoice
    25 
    26 config MINGWRT_VERSION
    27     string
    28     prompt "Mingw runtime version" if MINGWRT_V_select
    29 # Don't remove next line
    30 # CT_INSERT_VERSION_STRING_BELOW
    31     default "3.18" if MINGWRT_V_3_18
    32     help
    33       Enter the version number of the mingw runtime files to use
    34