MQ: add current state of changes default tip
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 02 00:02:32 2011 +0100 (2011-01-02)
changeset 13c998003904c
parent 0 354e402ede12
MQ: add current state of changes

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
complibs-use-distro-provided-libs
series
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/complibs-use-distro-provided-libs	Sun Jan 02 00:02:32 2011 +0100
     1.3 @@ -0,0 +1,102 @@
     1.4 +# HG changeset patch
     1.5 +# Parent 23e27fc054b699f1f6530ef0458d990b1f834599
     1.6 +# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1.7 +# Date 1284399119 -7200
     1.8 +
     1.9 +complibs: add option to use distro-provided libs
    1.10 +
    1.11 +Now that some distros are catching up (eg. Debian testing at least),
    1.12 +add an option to use companion libs from the distro.
    1.13 +
    1.14 +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
    1.15 +
    1.16 +diff --git a/config/companion_libs.in b/config/companion_libs.in
    1.17 +--- a/config/companion_libs.in
    1.18 ++++ b/config/companion_libs.in
    1.19 +@@ -4,6 +4,42 @@
    1.20 + 
    1.21 + menu "Companion libraries"
    1.22 + 
    1.23 ++config COMPLIBS_DISTRO
    1.24 ++    bool
    1.25 ++    prompt "Trust companion libraries from the distro (READ HELP!)"
    1.26 ++    default n
    1.27 ++    depends on COMPLIBS_NEEDED
    1.28 ++    depends on EXPERIMENTAL
    1.29 ++    help
    1.30 ++      Most of the distributions current as of this writing lack the proper
    1.31 ++      version of the required companion libraries, or do not even package
    1.32 ++      those.  For example Debian Lenny has too old a version for PPL, and
    1.33 ++      does not provide MPC and CLooG.
    1.34 ++      
    1.35 ++      But now distributions are catching up, and some (most?) of them do
    1.36 ++      package the proper versions of those libraries. For example again,
    1.37 ++      Debian Squeeze (still in testing) has the proper versions now.
    1.38 ++      
    1.39 ++      If you want to trust your distribution for providing the companion
    1.40 ++      libraries, say 'Y' here, or if you want crosstool-NG to build them
    1.41 ++      for you, say 'N'.
    1.42 ++      
    1.43 ++      The default is 'N', to cope with stable productions systems that most
    1.44 ++      probably are using proven-stable distributions, and can not upgrade.
    1.45 ++      
    1.46 ++      Also, this is still experimental, so you'd better say 'N' if you are
    1.47 ++      not sure.
    1.48 ++      
    1.49 ++      Note-1: if you say 'Y' here, it is very probable that the libraries
    1.50 ++      will be linked in dynamically, and not static. This is not an issue
    1.51 ++      if you keep the toolchain on the machine where it was built, but can
    1.52 ++      become one if you want to move the toolchain to another machine, with
    1.53 ++      an older distro. You've been warned!
    1.54 ++      
    1.55 ++      Note-2: for now, this is an all-from-distro or all-from-crosstool-NG
    1.56 ++      setting. You can't use one lib from the distro, and build another
    1.57 ++      one from crosstool-NG.
    1.58 ++
    1.59 + config COMPLIBS_NEEDED
    1.60 +     bool
    1.61 +     default n
    1.62 +@@ -11,37 +47,37 @@
    1.63 + config GMP_NEEDED
    1.64 +     bool
    1.65 +     default n
    1.66 +-    select GMP
    1.67 ++    select GMP      if ! COMPLIBS_DISTRO
    1.68 +     select COMPLIBS_NEEDED
    1.69 + 
    1.70 + config MPFR_NEEDED
    1.71 +     bool
    1.72 +     default n
    1.73 +-    select MPFR
    1.74 ++    select MPFR     if ! COMPLIBS_DISTRO
    1.75 +     select COMPLIBS_NEEDED
    1.76 + 
    1.77 + config PPL_NEEDED
    1.78 +     bool
    1.79 +     default n
    1.80 +-    select PPL
    1.81 ++    select PPL      if ! COMPLIBS_DISTRO
    1.82 +     select COMPLIBS_NEEDED
    1.83 + 
    1.84 + config CLOOG_NEEDED
    1.85 +     bool
    1.86 +     default n
    1.87 +-    select CLOOG
    1.88 ++    select CLOOG    if ! COMPLIBS_DISTRO
    1.89 +     select COMPLIBS_NEEDED
    1.90 + 
    1.91 + config MPC_NEEDED
    1.92 +     bool
    1.93 +     default n
    1.94 +-    select MPC
    1.95 ++    select MPC      if ! COMPLIBS_DISTRO
    1.96 +     select COMPLIBS_NEEDED
    1.97 + 
    1.98 + config LIBELF_NEEDED
    1.99 +     bool
   1.100 +     default n
   1.101 +-    select LIBELF
   1.102 ++    select LIBELF   if ! COMPLIBS_DISTRO
   1.103 +     select COMPLIBS_NEEDED
   1.104 + 
   1.105 + config COMPLIBS
     2.1 --- a/series	Sat Jan 01 23:24:05 2011 +0100
     2.2 +++ b/series	Sun Jan 02 00:02:32 2011 +0100
     2.3 @@ -0,0 +1,1 @@
     2.4 +complibs-use-distro-provided-libs