diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-29 22:06:26 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-08-01 23:37:06 +0200 |
commit | 8c36c65ab8d4ebbac76799fe956a218d9c382bc1 (patch) | |
tree | 11002e9b9280469156e5bddbf87906cd2f1052cd | |
parent | 6ce80b6a6e609a29a9930626d625f545968d9bb3 (diff) | |
download | buildroot-8c36c65ab8d4ebbac76799fe956a218d9c382bc1.tar.gz buildroot-8c36c65ab8d4ebbac76799fe956a218d9c382bc1.zip |
gdb: force to use ncurses and not termcap for host-gdb
Both our target and host gdb depend on ncurses (host-ncurses for
host-gdb, of course). However, while for the target we passs
--with-curses, we are not doing this for the host variant. Due to
this, host-gdb default to using the termcap library: if such a library
is available on the build system, it will be used instead of the
host-ncurses we have built. This causes the host gdb binary to depend
on a library that we do not provide in $(HOST_DIR), breaking the
principle of a standalone SDK (which should only depend on the C
library).
To solve this, we simply pass --with-curses in HOST_GDB_CONF_OPTS,
which forces host-gdb to use the host-ncurses library.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/gdb/gdb.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index 73b0ea09d9..1fef0d4f5e 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -203,6 +203,7 @@ HOST_GDB_CONF_OPTS = \ --enable-threads \ --disable-werror \ --without-included-gettext \ + --with-curses \ $(GDB_DISABLE_BINUTILS_CONF_OPTS) ifeq ($(BR2_PACKAGE_HOST_GDB_TUI),y) |