diff options
authorYann E. MORIN" <>2011-08-17 21:53:49 (GMT)
committerYann E. MORIN" <>2011-08-17 21:53:49 (GMT)
commit5cda934d4b027dc7a9cd93a4bc57f9a63bb2eccd (patch)
parent6fc6d842e85efd3e692921b30b5e2a1fa3b69598 (diff)
debug/gdb: we don't care if the host tic is shared or static
Because we need our own host tic, we have to build it; and we do build it statically for now. But as MacOS/Darwin/Whatever-you-call-it does not support static linking (what a shame!), it fails. Anyway, we don't really care it being shared, in the end. Signed-off-by: "Yann E. MORIN" <> (transplanted from 41bd6777fa4f767d6264db7c58986920014fd708)
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build/debug/ b/scripts/build/debug/
index 0b25f2e..2a7a704 100644
--- a/scripts/build/debug/
+++ b/scripts/build/debug/
@@ -197,13 +197,16 @@ do_debug_gdb_build() {
--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 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:]]*//;')