path: root/scripts
diff options
authorYann E. MORIN" <>2011-08-17 21:53:49 (GMT)
committerYann E. MORIN" <>2011-08-17 21:53:49 (GMT)
commit307400f4cad484b67e69b5ae6d803f7c052e8268 (patch)
tree2545dc203a2fa571247bc1eace4ed4a96210f3b6 /scripts
parent2c98fef5765a7d0622bedec4a10afcddd79a7c0b (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" <>
Diffstat (limited to 'scripts')
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build/debug/ b/scripts/build/debug/
index 84c53be..99356d7 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:]]*//;')