summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/debug/300-gdb.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index 84c53be..99356d7 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -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_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:]]*//;')