config/companion_libs.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Oct 03 23:10:46 2010 +0200 (2010-10-03)
changeset 2130 b46ecc90d3ab
parent 2121 ea11e149ec23
child 2131 469830f72fe7
permissions -rw-r--r--
complibs: better deduce whether to backup complibs or not

To decide whether we need to backup the companion libraries,
do not rely on the !shared case. In the future other cases
may require not to save the companion libraries (eg. if using
the ones provided by the host distro).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1318
     1
# Companion libraries config options
yann@1318
     2
# Those libraries are required for different versions of gcc,
yann@1318
     3
# and can be used by binutils and gdb (maybe others as well).
yann@602
     4
yann@1318
     5
menu "Companion libraries"
yann@602
     6
yann@1809
     7
config COMPLIBS
yann@1809
     8
    bool
yann@1809
     9
    default n
yann@1809
    10
yann@1495
    11
config WRAPPER_NEEDED
yann@1495
    12
    bool
yann@1495
    13
    default n
yann@1495
    14
yann@1808
    15
config GMP
yann@602
    16
    bool
yann@1809
    17
    select COMPLIBS
yann@602
    18
yann@1808
    19
config MPFR
yann@1808
    20
    bool
yann@1808
    21
    select GMP
yann@1809
    22
    select COMPLIBS
yann@1808
    23
yann@1808
    24
config PPL
yann@1808
    25
    bool
yann@1808
    26
    select GMP
yann@1809
    27
    select COMPLIBS
yann@1808
    28
yann@1808
    29
config CLOOG
yann@1808
    30
    bool
yann@1808
    31
    select GMP
yann@1808
    32
    select PPL
yann@1809
    33
    select COMPLIBS
yann@1808
    34
yann@1808
    35
config MPC
yann@1808
    36
    bool
yann@1808
    37
    select GMP
yann@1808
    38
    select MPFR
yann@1809
    39
    select COMPLIBS
yann@1808
    40
yann@1811
    41
config LIBELF
yann@1811
    42
    bool
yann@1811
    43
    select COMPLIBS
yann@1811
    44
yann@1811
    45
config LIBELF_TARGET
yann@1811
    46
    bool
yann@1811
    47
yann@2099
    48
if GMP
yann@1870
    49
source "config/companion_libs/gmp.in"
yann@1808
    50
endif
yann@2099
    51
if MPFR
yann@1870
    52
source "config/companion_libs/mpfr.in"
yann@602
    53
endif
yann@2099
    54
if PPL
yann@1870
    55
source "config/companion_libs/ppl.in"
yann@1808
    56
endif
yann@2099
    57
if CLOOG
yann@1870
    58
source "config/companion_libs/cloog.in"
yann@1808
    59
endif
yann@2099
    60
if MPC
yann@1870
    61
source "config/companion_libs/mpc.in"
yann@1324
    62
endif
yann@1811
    63
if LIBELF || LIBELF_TARGET
yann@1811
    64
comment "libelf version needed to build for target"
yann@1811
    65
    depends on !LIBELF
yann@1870
    66
source "config/companion_libs/libelf.in"
yann@1811
    67
endif
yann@1324
    68
yann@1398
    69
config FOO
yann@1398
    70
    bool
yann@1398
    71
yann@1892
    72
if COMPLIBS
yann@1892
    73
yann@1398
    74
comment "Companion libraries common options"
yann@1809
    75
yann@2130
    76
config COMPLIBS_BACKUP
yann@2130
    77
    bool
yann@2130
    78
    default y
yann@2130
    79
    depends on ! COMPLIBS_SHARED
yann@2130
    80
yann@1890
    81
config COMPLIBS_CHECK
yann@1386
    82
    bool
yann@1892
    83
    prompt "Check the companion libraries builds (!!! READ HELP!!!)"
yann@1386
    84
    default n
yann@1386
    85
    help
yann@1386
    86
      It is highly recommended to check the newly built companion libraries.
yann@1386
    87
      Unfortunately, this is a very intensive task, and takes a loooong time.
Yann@1407
    88
      
yann@1386
    89
      Checking the newly built companion libraries is thus disabled by default,
yann@1388
    90
      but it is suggested that you check them at least once on your machine,
yann@1386
    91
      and if they work, disable the check on subsequent builds.
Yann@1407
    92
      
yann@1386
    93
      If you suspect that one (or more) of your companion libraries is the
yann@1386
    94
      cause for incorrectly generated code, you should answer 'Y' here.
yann@1386
    95
      Note however that this will take a really long time. For example,
yann@1386
    96
      building PPL on my machine takes roughly 1'40", while checking it takes
yann@1398
    97
      about 1h40'...
yann@1386
    98
yann@1892
    99
config COMPLIBS_SHARED
yann@1892
   100
    bool
yann@1892
   101
    prompt "Build shared companion libraries"
yann@1892
   102
    default n
yann@1892
   103
    depends on COMPLIBS
yann@1892
   104
    select WRAPPER_NEEDED
yann@1892
   105
    help
yann@1892
   106
      By default, the companion libraries will be build static. If you want to
yann@1892
   107
      build shared libraries, then you can say 'Y' here, but a wrapper will be
yann@1892
   108
      needed (see docs/overview.txt,section "Tools wrapper").
yann@1892
   109
      
yann@1892
   110
      It is highly recommended that you keep static libraries.
yann@1892
   111
yann@1515
   112
choice
yann@1515
   113
    bool
yann@1515
   114
    prompt "|  Install tools wrapper as:"
yann@1515
   115
    depends on WRAPPER_NEEDED
yann@1515
   116
    default TOOLS_WRAPPER_SHELL
yann@1515
   117
yann@1515
   118
config TOOLS_WRAPPER_SCRIPT
yann@1515
   119
    bool
yann@1515
   120
    prompt "shell script"
yann@1515
   121
    help
yann@1515
   122
      If your host has a shell, then you should say 'Y' here, to use
yann@1515
   123
      a (very very simple) shell script as wrapper.
yann@1515
   124
      
yann@1515
   125
      See docs/overview.txt, section "Tools wrapper".
yann@1515
   126
yann@1515
   127
config TOOLS_WRAPPER_EXEC
yann@1515
   128
    bool
yann@1515
   129
    prompt "executable"
yann@1515
   130
    help
yann@1515
   131
      If your host lacks a shell, then you should say 'Y' here, to use
yann@1515
   132
      an executable.
yann@1515
   133
      
yann@1515
   134
      See docs/overview.txt, section "Tools wrapper".
yann@1515
   135
yann@1515
   136
endchoice
yann@1515
   137
yann@1515
   138
config TOOLS_WRAPPER
yann@1515
   139
    string
yann@1515
   140
    default "script" if TOOLS_WRAPPER_SCRIPT
yann@1515
   141
    default "exec"   if TOOLS_WRAPPER_EXEC
yann@1515
   142
yann@1892
   143
endif # COMPLIBS
yann@1892
   144
yann@602
   145
endmenu