summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/gdb/gdb.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index dbec760f19..aa22193cfe 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -74,6 +74,8 @@ GDB_CONF_ENV = \
bash_cv_have_mbstate_t=yes \
gdb_cv_func_sigsetjmp=yes
+# The shared only build is not supported by gdb, so enable static build for
+# build-in libraries with --enable-static.
GDB_CONF_OPTS = \
--without-uiout \
--disable-gdbtk \
@@ -83,7 +85,8 @@ GDB_CONF_OPTS = \
$(if $(BR2_PACKAGE_GDB_SERVER),--enable-gdbserver) \
--with-curses \
--without-included-gettext \
- --disable-werror
+ --disable-werror \
+ --enable-static
ifeq ($(BR2_PACKAGE_GDB_TUI),y)
GDB_CONF_OPTS += --enable-tui
OpenPOWER on IntegriCloud