diff -r 02db017f4fe1 -r f9145ebb4fbc scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Wed Jan 13 22:30:10 2010 +0100 +++ b/scripts/build/debug/300-gdb.sh Thu Jan 21 22:33:54 2010 +0100 @@ -1,5 +1,11 @@ # Build script for the gdb debug facility +# The version of ncurses to use. Yes, it's hard-coded. +# It's used only internally by crosstool-NG, and is +# not exposed outside, so we don't care about providing +# config options for this. +CT_DEBUG_GDB_NCURSES_VERSION="5.7" + do_debug_gdb_suffix() { case "${CT_GDB_VERSION}" in snapshot) ;; @@ -47,7 +53,7 @@ fi if [ "${do_ncurses}" = "y" ]; then - CT_GetFile "ncurses-${CT_NCURSES_VERSION}" .tar.gz \ + CT_GetFile "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}" .tar.gz \ {ftp,http}://ftp.gnu.org/pub/gnu/ncurses \ ftp://invisible-island.net/ncurses fi @@ -67,8 +73,8 @@ fi if [ "${do_ncurses}" = "y" ]; then - CT_Extract "ncurses-${CT_NCURSES_VERSION}" - CT_Patch "ncurses-${CT_NCURSES_VERSION}" + CT_Extract "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}" + CT_Patch "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}" fi } @@ -154,7 +160,7 @@ # cross-compiling, and thus will use the ${CT_BUILD}-* # tools instead of searching for the native ones... CT_DoExecLog ALL \ - "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \ + "${CT_SRC_DIR}/ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}/configure" \ --build=${CT_REAL_BUILD} \ --host=${CT_BUILD} \ --prefix=/usr \ @@ -184,7 +190,7 @@ cd "${CT_BUILD_DIR}/build-ncurses" CT_DoExecLog ALL \ - "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \ + "${CT_SRC_DIR}/ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${CT_TARGET} \ --with-build-cc=${CT_BUILD}-gcc \