# HG changeset patch # User "Yann E. MORIN" # Date 1238447841 0 # Node ID 12a2991fcffb6fb6dc7d097b19df43d012a70024 # Parent 46f27896bfc4cd651d7844ea13e42ca940e458c2 Cleanup the tic build used for native ncurses build, itself needed for native gdb build. /trunk/scripts/build/debug/300-gdb.sh | 24 12 12 0 ++++++++++++------------ /trunk/scripts/build/internals.sh | 1 0 1 0 - 2 files changed, 12 insertions(+), 13 deletions(-) diff -r 46f27896bfc4 -r 12a2991fcffb scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Mon Mar 30 21:06:55 2009 +0000 +++ b/scripts/build/debug/300-gdb.sh Mon Mar 30 21:17:21 2009 +0000 @@ -134,15 +134,17 @@ if [ "${CT_GDB_NATIVE}" = "y" ]; then CT_DoStep INFO "Installing native gdb" + CT_DoStep INFO "Installing ncurses library" + + ncurses_opts= + [ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts="${ncurses_opts} --without-cxx --without-cxx-binding" + [ "${CT_CC_LANG_ADA}" = "y" ] || ncurses_opts="${ncurses_opts} --without-ada" + CT_DoStep INFO "Installing native ncurses tic" CT_DoLog EXTRA "Configuring ncurses tic" mkdir -p "${CT_BUILD_DIR}/build-ncurses-build-tic" cd "${CT_BUILD_DIR}/build-ncurses-build-tic" - ncurses_opts= - [ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts="${ncurses_opts} --without-cxx --without-cxx-binding" - [ "${CT_CC_LANG_ADA}" = "y" ] || ncurses_opts="${ncurses_opts} --without-ada" - # Use build = CT_REAL_BUILD so that configure thinks it is # cross-compiling, and thus will use the ${CT_BUILD}-* # tools instead of searching for the native ones... @@ -170,17 +172,12 @@ CT_DoExecLog ALL install -d -m 0755 "${CT_PREFIX_DIR}/bin" CT_DoExecLog ALL install -m 0755 "progs/tic${tic_ext}" "${CT_PREFIX_DIR}/bin" - CT_EndStep + CT_EndStep # tic build - CT_DoStep INFO "Installing ncurses library" CT_DoLog EXTRA "Configuring ncurses" mkdir -p "${CT_BUILD_DIR}/build-ncurses" cd "${CT_BUILD_DIR}/build-ncurses" - ncurses_opts= - [ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts="${ncurses_opts} --without-cxx --without-cxx-binding" - [ "${CT_CC_LANG_ADA}" = "y" ] || ncurses_opts="${ncurses_opts} --without-ada" - CT_DoExecLog ALL \ "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \ --build=${CT_BUILD} \ @@ -202,7 +199,10 @@ mkdir -p "${CT_SYSROOT_DIR}/usr/bin" CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install - CT_EndStep + # We no longer need the temporary tic. Remove it + CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/tic" + + CT_EndStep # ncurses build CT_DoLog EXTRA "Configuring native gdb" @@ -260,7 +260,7 @@ unset ac_cv_func_strncmp_works - CT_EndStep + CT_EndStep # native gdb build fi if [ "${CT_GDB_GDBSERVER}" = "y" ]; then diff -r 46f27896bfc4 -r 12a2991fcffb scripts/build/internals.sh --- a/scripts/build/internals.sh Mon Mar 30 21:06:55 2009 +0000 +++ b/scripts/build/internals.sh Mon Mar 30 21:17:21 2009 +0000 @@ -10,7 +10,6 @@ find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/makeinfo" - CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/tic" if [ "${CT_BARE_METAL}" != "y" ]; then CT_DoLog EXTRA "Installing the populate helper"