mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-12 05:39:57 +00:00
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(-)
This commit is contained in:
parent
817fc81efd
commit
893f21944c
@ -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 \
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user