summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-12 18:54:54 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-12 18:54:54 (GMT)
commitd34a5ec7d8003256b859421dc080be0362663678 (patch)
tree0eaff319c7efbd3257b9c1360ac897dc27b0890e /scripts/build/cc
parent4c326c29241784efbda7494c09068a103397b2f4 (diff)
cc/gcc: do not force use of non-vital companion libraries
While GMP and MPFR are required by gcc>=4.3 (to build the frontends), and MPC is required by gcc>=4.5, the other libs are not. If they are present then gcc will enable advanced features; if they are missing, then gcc will (should) simply disable those features. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/gcc.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index e4d75e7..0f12c61 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -169,12 +169,14 @@ do_cc_core() {
extra_config+=("--with-gmp=${CT_COMPLIBS_DIR}")
extra_config+=("--with-mpfr=${CT_COMPLIBS_DIR}")
fi
- if [ "${CT_CC_GCC_USE_PPL_CLOOG}" = "y" ]; then
+ if [ "${CT_CC_GCC_USE_MPC}" = "y" ]; then
+ extra_config+=("--with-mpc=${CT_COMPLIBS_DIR}")
+ fi
+ if [ "${CT_CC_GCC_USE_GRAPHITE}" = "y" ]; then
extra_config+=("--with-ppl=${CT_COMPLIBS_DIR}")
extra_config+=("--with-cloog=${CT_COMPLIBS_DIR}")
fi
- if [ "${CT_CC_GCC_USE_MPC_LIBELF}" = "y" ]; then
- extra_config+=("--with-mpc=${CT_COMPLIBS_DIR}")
+ if [ "${CT_CC_GCC_USE_LTO}" = "y" ]; then
extra_config+=("--with-libelf=${CT_COMPLIBS_DIR}")
fi
@@ -365,12 +367,14 @@ do_cc() {
extra_config+=("--with-gmp=${CT_COMPLIBS_DIR}")
extra_config+=("--with-mpfr=${CT_COMPLIBS_DIR}")
fi
- if [ "${CT_CC_GCC_USE_PPL_CLOOG}" = "y" ]; then
+ if [ "${CT_CC_GCC_USE_MPC}" = "y" ]; then
+ extra_config+=("--with-mpc=${CT_COMPLIBS_DIR}")
+ fi
+ if [ "${CT_CC_GCC_USE_GRAPHITE}" = "y" ]; then
extra_config+=("--with-ppl=${CT_COMPLIBS_DIR}")
extra_config+=("--with-cloog=${CT_COMPLIBS_DIR}")
fi
- if [ "${CT_CC_GCC_USE_MPC_LIBELF}" = "y" ]; then
- extra_config+=("--with-mpc=${CT_COMPLIBS_DIR}")
+ if [ "${CT_CC_GCC_USE_LTO}" = "y" ]; then
extra_config+=("--with-libelf=${CT_COMPLIBS_DIR}")
fi