scripts/build/debug/300-gdb.sh
changeset 1743 f9145ebb4fbc
parent 1733 02db017f4fe1
child 1744 e27d2bd82790
     1.1 --- a/scripts/build/debug/300-gdb.sh	Wed Jan 13 22:30:10 2010 +0100
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Thu Jan 21 22:33:54 2010 +0100
     1.3 @@ -1,5 +1,11 @@
     1.4  # Build script for the gdb debug facility
     1.5  
     1.6 +# The version of ncurses to use. Yes, it's hard-coded.
     1.7 +# It's used only internally by crosstool-NG, and is
     1.8 +# not exposed outside, so we don't care about providing
     1.9 +# config options for this.
    1.10 +CT_DEBUG_GDB_NCURSES_VERSION="5.7"
    1.11 +
    1.12  do_debug_gdb_suffix() {
    1.13      case "${CT_GDB_VERSION}" in
    1.14          snapshot)   ;;
    1.15 @@ -47,7 +53,7 @@
    1.16      fi
    1.17  
    1.18      if [ "${do_ncurses}" = "y" ]; then
    1.19 -        CT_GetFile "ncurses-${CT_NCURSES_VERSION}" .tar.gz  \
    1.20 +        CT_GetFile "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}" .tar.gz  \
    1.21                     {ftp,http}://ftp.gnu.org/pub/gnu/ncurses \
    1.22                     ftp://invisible-island.net/ncurses
    1.23      fi
    1.24 @@ -67,8 +73,8 @@
    1.25      fi
    1.26  
    1.27      if [ "${do_ncurses}" = "y" ]; then
    1.28 -        CT_Extract "ncurses-${CT_NCURSES_VERSION}"
    1.29 -        CT_Patch "ncurses-${CT_NCURSES_VERSION}"
    1.30 +        CT_Extract "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}"
    1.31 +        CT_Patch "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}"
    1.32      fi
    1.33  }
    1.34  
    1.35 @@ -154,7 +160,7 @@
    1.36          # cross-compiling, and thus will use the ${CT_BUILD}-*
    1.37          # tools instead of searching for the native ones...
    1.38          CT_DoExecLog ALL                                        \
    1.39 -        "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
    1.40 +        "${CT_SRC_DIR}/ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}/configure" \
    1.41              --build=${CT_REAL_BUILD}                            \
    1.42              --host=${CT_BUILD}                                  \
    1.43              --prefix=/usr                                       \
    1.44 @@ -184,7 +190,7 @@
    1.45          cd "${CT_BUILD_DIR}/build-ncurses"
    1.46  
    1.47          CT_DoExecLog ALL                                        \
    1.48 -        "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
    1.49 +        "${CT_SRC_DIR}/ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}/configure" \
    1.50              --build=${CT_BUILD}                                 \
    1.51              --host=${CT_TARGET}                                 \
    1.52              --with-build-cc=${CT_BUILD}-gcc                     \