summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-23 23:05:08 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-23 23:05:08 (GMT)
commit893f21944cf405deb7b42c42fc13a720893298c6 (patch)
treea88e2a9e63e0514f172fce04526932b85ce7146a
parent817fc81efd9581580bdadb03fffb4191915113db (diff)
xlcwu <xlcwu.taiwan@gmail.com> wrote:
Seems ncurses 5.7 need build host stage for tic step; if use host tic (ubuntu) the build process hang in the below step. So I guess need to build ncurses host stage to build new tic and provided a patch to that efect. And in fact, we do need "tic" to run on the _build_ system to properly generate the terminfo database. Note: this is fully functional, but still requires a litle bit of tweaking so that ${CT_BUILD}-gcc gets used instead of plain gcc. But that's a minor problem for now... /trunk/scripts/build/debug/300-gdb.sh | 35 33 2 0 +++++++++++++++++++++++++++++++++-- /trunk/scripts/build/internals.sh | 1 1 0 0 + 2 files changed, 34 insertions(+), 2 deletions(-)
-rw-r--r--scripts/build/debug/300-gdb.sh35
-rw-r--r--scripts/build/internals.sh1
2 files changed, 34 insertions, 2 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index 6acb567..17d0621 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -134,6 +134,37 @@ do_debug_gdb_build() {
if [ "${CT_GDB_NATIVE}" = "y" ]; then
CT_DoStep INFO "Installing native gdb"
+ 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"
+
+ CT_DoExecLog ALL \
+ "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
+ --build=${CT_BUILD} \
+ --host=${CT_BUILD} \
+ --prefix=/usr \
+ --without-shared \
+ --enable-symlinks \
+ --with-build-cc=${CT_BUILD}-gcc \
+ --with-build-cpp=${CT_BUILD}-gcc \
+ --with-build-cflags="${CT_CFLAGS_FOR_HOST}" \
+ ${ncurses_opts}
+
+ CT_DoLog EXTRA "Building ncurses tic"
+ CT_DoExecLog ALL make -C "${CT_BUILD_DIR}/build-ncurses-build-tic/include"
+ CT_DoExecLog ALL make -C "${CT_BUILD_DIR}/build-ncurses-build-tic/progs" tic
+
+ CT_DoLog EXTRA "Installing ncurses tic"
+ CT_DoExecLog ALL install -d -m 0755 "${CT_PREFIX_DIR}/bin"
+ CT_DoExecLog ALL install -m 0755 "${CT_BUILD_DIR}/build-ncurses-build-tic/progs/tic" "${CT_PREFIX_DIR}/bin/tic"
+
+ CT_EndStep
+
CT_DoStep INFO "Installing ncurses library"
CT_DoLog EXTRA "Configuring ncurses"
mkdir -p "${CT_BUILD_DIR}/build-ncurses"
@@ -147,8 +178,8 @@ do_debug_gdb_build() {
"${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
--build=${CT_BUILD} \
--host=${CT_TARGET} \
- --with-build-cc=${CT_CC} \
- --with-build-cpp=${CT_CC} \
+ --with-build-cc=${CT_BUILD}-gcc \
+ --with-build-cpp=${CT_BUILD}-gcc \
--with-build-cflags="${CT_CFLAGS_FOR_HOST}" \
--prefix=/usr \
--with-shared \
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
index 575f07d..5b639db 100644
--- a/scripts/build/internals.sh
+++ b/scripts/build/internals.sh
@@ -10,6 +10,7 @@ do_finish() {
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"