From 2244007325f1fbd50177b56511091b347837997e Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 15 Mar 2010 22:02:02 +0100 Subject: debug/gdb: gdb>=7.0 can use MPC, enable for cross-gdb diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross index 4699bab..900ff72 100644 --- a/config/debug/gdb.in.cross +++ b/config/debug/gdb.in.cross @@ -22,6 +22,18 @@ config GDB_CROSS_USE_GMP_MPFR Say 'Y' here if you want to use GMP+MPFR. +config GDB_CROSS_USE_MPC + bool + prompt "Use MPC" + default n + select GDB_CROSS_USE_GMP_MPFR + select MPC + select GDB_CROSS_NO_STATIC + help + gdb can use MPC, although it does not seem compulsory. + + Say 'Y' here if you want to use MPC. + config GDB_CROSS_NO_STATIC bool default n diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 46b3ea1..afa783a 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -103,6 +103,9 @@ do_debug_gdb_build() { cross_extra_config+=("--with-gmp=${CT_PREFIX_DIR}") cross_extra_config+=("--with-mpfr=${CT_PREFIX_DIR}") fi + if [ "${CT_GDB_CROSS_USE_MPC}" = "y" ]; then + cross_extra_config+=("--with-mpc=${CT_PREFIX_DIR}") + fi case "${CT_THREADS}" in none) cross_extra_config+=("--disable-threads");; *) cross_extra_config+=("--enable-threads");; -- cgit v0.10.2-6-g49f6