config/companion_libs.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Sep 10 12:14:24 2010 +0200 (2010-09-10)
changeset 2116 75ee9a87c0e4
parent 2099 1bb063c8a0ca
child 2121 ea11e149ec23
permissions -rw-r--r--
scripts: hack-in lib32->lib symlinks

Some archs (eg. ppc64 with n32 ABI) will install their
variants in lib32/ instead of lib/, so do for lib32 as
we do for lib64->lib symlinks.

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