debug/gdb: fix tic install path, tell ncurses where to find it
authorWilly Tarreau <w@1wt.eu>
Tue Nov 15 19:11:57 2011 +0100 (2011-11-15)
changeset 2751bd17cca444ae
parent 2750 c6d10ee4ab25
child 2752 c4452a1a18fb
debug/gdb: fix tic install path, tell ncurses where to find it

ncurses 5.9 wants tic to be either one of:
- $TIC_PATH
- /usr/bin/tic

Of course, se do not want the latter, for it can be incompatible if the
ncurses in the build system is too old (eg. RHEL 5.6, Debian Lenny...).
So, force TIC_PATH to the location of our own tic.

Also, install tic alongside the other build tools, not in a sub-dir
of the toolchain installation dir.

Signed-off-by: Willy Tarreau <w@1wt.eu>
[yann.morin.1998@anciens.enib.fr: install in builtools/bin, move TIC_PATH]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/debug/300-gdb.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Mon Nov 14 13:29:12 2011 +0100
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Tue Nov 15 19:11:57 2011 +0100
     1.3 @@ -219,13 +219,14 @@
     1.4              CT_DoExecLog ALL make ${JOBSFLAGS} -C include
     1.5              CT_DoExecLog ALL make ${JOBSFLAGS} -C progs "tic${tic_ext}"
     1.6  
     1.7 -            CT_DoExecLog ALL install -d -m 0755 "${CT_PREFIX_DIR}/buildtools"
     1.8 -            CT_DoExecLog ALL install -m 0755 "progs/tic${tic_ext}" "${CT_PREFIX_DIR}/buildtools"
     1.9 +            CT_DoExecLog ALL install -d -m 0755 "${CT_BUILDTOOLS_PREFIX_DIR}/bin"
    1.10 +            CT_DoExecLog ALL install -m 0755 "progs/tic${tic_ext}" "${CT_BUILDTOOLS_PREFIX_DIR}/bin"
    1.11  
    1.12              mkdir -p "${CT_BUILD_DIR}/build-ncurses"
    1.13              cd "${CT_BUILD_DIR}/build-ncurses"
    1.14  
    1.15              CT_DoExecLog CFG                                                    \
    1.16 +            TIC_PATH="${CT_BUILDTOOLS_PREFIX_DIR}/bin/tic${tic_ext}"            \
    1.17              "${CT_SRC_DIR}/ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}/configure"   \
    1.18                  --build=${CT_BUILD}                                             \
    1.19                  --host=${CT_TARGET}                                             \
    1.20 @@ -243,9 +244,6 @@
    1.21  
    1.22              CT_DoExecLog ALL make install
    1.23  
    1.24 -            # We no longer need the temporary tic. Remove it
    1.25 -            CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/buildtools/tic${tic_ext}"
    1.26 -
    1.27              native_extra_config+=("--with-curses")
    1.28              # There's no better way to tell gdb where to find -lcurses... :-(
    1.29              gdb_native_CFLAGS+=("-I${CT_BUILD_DIR}/static-target/include")