debug/gdb: we don't care if the host tic is shared or static 1.12
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Aug 17 23:53:49 2011 +0200 (2011-08-17)
branch1.12
changeset 2634e29a762bbadf
parent 2633 22e779b0a4ed
child 2635 daa630f28c05
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" <yann.morin.1998@anciens.enib.fr>
(transplanted from 41bd6777fa4f767d6264db7c58986920014fd708)
scripts/build/debug/300-gdb.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Fri Aug 19 00:52:05 2011 +0200
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Wed Aug 17 23:53:49 2011 +0200
     1.3 @@ -197,13 +197,16 @@
     1.4                  --build=${CT_BUILD}                                             \
     1.5                  --host=${CT_BUILD}                                              \
     1.6                  --prefix=/usr                                                   \
     1.7 -                --without-shared                                                \
     1.8                  --enable-symlinks                                               \
     1.9                  --with-build-cc=${CT_REAL_BUILD}-gcc                            \
    1.10                  --with-build-cpp=${CT_REAL_BUILD}-gcc                           \
    1.11                  --with-build-cflags="${CT_CFLAGS_FOR_HOST}"                     \
    1.12                  "${ncurses_opts[@]}"
    1.13  
    1.14 +            # ncurses insists on linking tic statically. It does not work
    1.15 +            # on some OSes (eg. MacOS-X/Darwin/whatever-you-call-it).
    1.16 +            CT_DoExecLog DEBUG sed -r -i -e 's/-static//g;' "progs/Makefile"
    1.17 +
    1.18              # Under some operating systems (eg. Winblows), there is an
    1.19              # extension appended to executables. Find that.
    1.20              tic_ext=$(grep -E '^x[[:space:]]*=' progs/Makefile |sed -r -e 's/^.*=[[:space:]]*//;')