yann@1: # HG changeset patch yann@1: # Parent 23e27fc054b699f1f6530ef0458d990b1f834599 yann@1: # User "Yann E. MORIN" yann@1: # Date 1284399119 -7200 yann@1: yann@1: complibs: add option to use distro-provided libs yann@1: yann@1: Now that some distros are catching up (eg. Debian testing at least), yann@1: add an option to use companion libs from the distro. yann@1: yann@1: Signed-off-by: "Yann E. MORIN" yann@1: yann@1: diff --git a/config/companion_libs.in b/config/companion_libs.in yann@1: --- a/config/companion_libs.in yann@1: +++ b/config/companion_libs.in yann@1: @@ -4,6 +4,42 @@ yann@1: yann@1: menu "Companion libraries" yann@1: yann@1: +config COMPLIBS_DISTRO yann@1: + bool yann@1: + prompt "Trust companion libraries from the distro (READ HELP!)" yann@1: + default n yann@1: + depends on COMPLIBS_NEEDED yann@1: + depends on EXPERIMENTAL yann@1: + help yann@1: + Most of the distributions current as of this writing lack the proper yann@1: + version of the required companion libraries, or do not even package yann@1: + those. For example Debian Lenny has too old a version for PPL, and yann@1: + does not provide MPC and CLooG. yann@1: + yann@1: + But now distributions are catching up, and some (most?) of them do yann@1: + package the proper versions of those libraries. For example again, yann@1: + Debian Squeeze (still in testing) has the proper versions now. yann@1: + yann@1: + If you want to trust your distribution for providing the companion yann@1: + libraries, say 'Y' here, or if you want crosstool-NG to build them yann@1: + for you, say 'N'. yann@1: + yann@1: + The default is 'N', to cope with stable productions systems that most yann@1: + probably are using proven-stable distributions, and can not upgrade. yann@1: + yann@1: + Also, this is still experimental, so you'd better say 'N' if you are yann@1: + not sure. yann@1: + yann@1: + Note-1: if you say 'Y' here, it is very probable that the libraries yann@1: + will be linked in dynamically, and not static. This is not an issue yann@1: + if you keep the toolchain on the machine where it was built, but can yann@1: + become one if you want to move the toolchain to another machine, with yann@1: + an older distro. You've been warned! yann@1: + yann@1: + Note-2: for now, this is an all-from-distro or all-from-crosstool-NG yann@1: + setting. You can't use one lib from the distro, and build another yann@1: + one from crosstool-NG. yann@1: + yann@1: config COMPLIBS_NEEDED yann@1: bool yann@1: default n yann@1: @@ -11,37 +47,37 @@ yann@1: config GMP_NEEDED yann@1: bool yann@1: default n yann@1: - select GMP yann@1: + select GMP if ! COMPLIBS_DISTRO yann@1: select COMPLIBS_NEEDED yann@1: yann@1: config MPFR_NEEDED yann@1: bool yann@1: default n yann@1: - select MPFR yann@1: + select MPFR if ! COMPLIBS_DISTRO yann@1: select COMPLIBS_NEEDED yann@1: yann@1: config PPL_NEEDED yann@1: bool yann@1: default n yann@1: - select PPL yann@1: + select PPL if ! COMPLIBS_DISTRO yann@1: select COMPLIBS_NEEDED yann@1: yann@1: config CLOOG_NEEDED yann@1: bool yann@1: default n yann@1: - select CLOOG yann@1: + select CLOOG if ! COMPLIBS_DISTRO yann@1: select COMPLIBS_NEEDED yann@1: yann@1: config MPC_NEEDED yann@1: bool yann@1: default n yann@1: - select MPC yann@1: + select MPC if ! COMPLIBS_DISTRO yann@1: select COMPLIBS_NEEDED yann@1: yann@1: config LIBELF_NEEDED yann@1: bool yann@1: default n yann@1: - select LIBELF yann@1: + select LIBELF if ! COMPLIBS_DISTRO yann@1: select COMPLIBS_NEEDED yann@1: yann@1: config COMPLIBS