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