GMP and MPFR are no longer a sub-component of gcc (config-wise).
Build and install GMP and MPFR for the target.
Use the target GMP and MPFR to build the native gdb.
Have separate extra_config for cross gdb, native gdb and gdbserver.
Check native GMP and MPFR in //.
/trunk/scripts/build/debug/300-gdb.sh | 27 19 8 0 ++++++++++++++++-------
/trunk/scripts/build/gmp.sh | 47 39 8 0 ++++++++++++++++++++++++++++++++-------
/trunk/scripts/build/mpfr.sh | 49 40 9 0 +++++++++++++++++++++++++++++++++--------
/trunk/steps.mk | 2 2 0 0 ++
/trunk/config/cc/gcc.in | 18 1 17 0 +--------------
/trunk/config/debug/gdb.in | 6 1 5 0 +----
/trunk/config/config.in | 1 1 0 0 +
/trunk/config/gmp_mpfr.in | 34 34 0 0 ++++++++++++++++++++++++++++
8 files changed, 137 insertions(+), 47 deletions(-)
1 # Compute sh-specific values
4 # The architecture part of the tuple:
5 CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${target_endian_eb}"
7 # gcc ./configure flags
16 case "${CT_ARCH_BE},${CT_ARCH_LE}" in
17 y,) CT_ARCH_ENDIAN_CFLAG=-mb;;
18 ,y) CT_ARCH_ENDIAN_CFLAG=-ml;;
22 case "${CT_ARCH_SH_VARIENT}" in
23 sh3) CT_ARCH_ARCH_CFLAG=-m3;;
25 case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
26 y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";;
27 ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";;