debug/gdb: fix $need_ncurses_src usage

It should be used only to decide whether we need to download/extract
ncurses, not wheter we should build it or not.

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
Yann E. MORIN" 2013-03-03 15:25:52 +01:00
parent 42b0a64885
commit c31652d67d

View File

@ -215,7 +215,7 @@ do_debug_gdb_build() {
native_extra_config=("${extra_config[@]}") native_extra_config=("${extra_config[@]}")
# GDB on Mingw depends on PDcurses, not ncurses # GDB on Mingw depends on PDcurses, not ncurses
if [ "${need_ncurses_src}" = "y" ]; then if [ "${CT_MINGW32}" != "y" ]; then
CT_DoLog EXTRA "Building static target ncurses" CT_DoLog EXTRA "Building static target ncurses"
[ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts+=("--without-cxx" "--without-cxx-binding") [ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts+=("--without-cxx" "--without-cxx-binding")