Don’t build gdb/readline/libreadline.a, when --with-system-readline is supplied
diff mbox series

Message ID
State New
Headers show
  • Don’t build gdb/readline/libreadline.a, when --with-system-readline is supplied
Related show

Commit Message

Дилян Палаузов Oct. 27, 2018, 7:53 p.m. UTC
Building GDB always builds the bundles libreadline.a, even if use of
the libreadline installed on the system was requested with --with-

The change below is for binutils-gdb’s/, which is
maintained by gcc.

See [GCC] and [GDB] for

diff mbox series

diff --git a/ b/
--- a/
+++ b/
@@ -253,6 +253,12 @@  if test x$with_system_zlib = xyes ; then
   noconfigdirs="$noconfigdirs zlib"
+# Don't compile the bundled readline/libreadline.a in gdb-binutils if
+#  --with-system-readline is provided.
+if test x$with_system_readline = xyes ; then
+  noconfigdirs="$noconfigdirs readline"
 # some tools are so dependent upon X11 that if we're not building with
 # it's not even worth trying to configure, much less build, that tool.