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

Message ID 3903f0afc8d14e84ca34f61dda357e1c6162489b.camel@aegee.org
State New
Headers show
Series
  • 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-
system-readline.

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


See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87741 [GCC] and 
https://sourceware.org/bugzilla/show_bug.cgi?id=18632 [GDB] for
details.

Patch
diff mbox series

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -253,6 +253,12 @@  if test x$with_system_zlib = xyes ; then
   noconfigdirs="$noconfigdirs zlib"
 fi
 
+# 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"
+fi
+
 # some tools are so dependent upon X11 that if we're not building with
X, 
 # it's not even worth trying to configure, much less build, that tool.