debug/gdb: gdb>=7.0 can use MPC, enable for cross-gdb

This commit is contained in:
Yann E. MORIN" 2010-03-15 22:02:02 +01:00
parent 76f3741a0f
commit 2244007325
2 changed files with 15 additions and 0 deletions

View File

@ -22,6 +22,18 @@ config GDB_CROSS_USE_GMP_MPFR
Say 'Y' here if you want to 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 config GDB_CROSS_NO_STATIC
bool bool
default n default n

View File

@ -103,6 +103,9 @@ do_debug_gdb_build() {
cross_extra_config+=("--with-gmp=${CT_PREFIX_DIR}") cross_extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
cross_extra_config+=("--with-mpfr=${CT_PREFIX_DIR}") cross_extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
fi fi
if [ "${CT_GDB_CROSS_USE_MPC}" = "y" ]; then
cross_extra_config+=("--with-mpc=${CT_PREFIX_DIR}")
fi
case "${CT_THREADS}" in case "${CT_THREADS}" in
none) cross_extra_config+=("--disable-threads");; none) cross_extra_config+=("--disable-threads");;
*) cross_extra_config+=("--enable-threads");; *) cross_extra_config+=("--enable-threads");;