https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87741
Bug ID: 87741 Summary: Don't build readline/libreadline.a in GDB, when --with-system-readline is supplied Product: gcc Version: 7.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dilyan.palauzov at aegee dot org Target Milestone: --- Please integrate this snippet, so that gdb can skip building the shipped libreadline, when the system-libreadline is used, see https://sourceware.org/bugzilla/show_bug.cgi?id=18632 for details 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.