diff -r b0cc1bf3e851 -r e29a762bbadf scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Sat Jul 30 00:05:53 2011 +0200 +++ b/scripts/build/debug/300-gdb.sh Wed Aug 17 23:53:49 2011 +0200 @@ -197,13 +197,16 @@ --build=${CT_BUILD} \ --host=${CT_BUILD} \ --prefix=/usr \ - --without-shared \ --enable-symlinks \ --with-build-cc=${CT_REAL_BUILD}-gcc \ --with-build-cpp=${CT_REAL_BUILD}-gcc \ --with-build-cflags="${CT_CFLAGS_FOR_HOST}" \ "${ncurses_opts[@]}" + # ncurses insists on linking tic statically. It does not work + # on some OSes (eg. MacOS-X/Darwin/whatever-you-call-it). + CT_DoExecLog DEBUG sed -r -i -e 's/-static//g;' "progs/Makefile" + # Under some operating systems (eg. Winblows), there is an # extension appended to executables. Find that. tic_ext=$(grep -E '^x[[:space:]]*=' progs/Makefile |sed -r -e 's/^.*=[[:space:]]*//;')