Add --with-static-standard-libraries to the top level
authorTom Tromey <tom@tromey.com>
Thu, 19 Sep 2019 14:18:33 +0000 (16:18 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 19 Sep 2019 14:18:33 +0000 (16:18 +0200)
commitef93dd73bcaefd1736cbc9aaf9a0178be7976b6e
treea31423b6f230a0adb73df270e647fc5e2de136ad
parentfe3e3465688c1fe419769ed2522cfe44440ee040
Add --with-static-standard-libraries to the top level

[ Backport of master commit c1a5d03a89. ]

gdb should normally not be linked with -static-libstdc++.  Currently
this has not caused problems, but it's incompatible with catching an
exception thrown from a shared library -- and a subsequent patch
changes gdb to do just this.

This patch adds a new --with-static-standard-libraries flag to the
top-level configure.  It defaults to "auto", which means enabled if
gcc is being built, and disabled otherwise.

ChangeLog
2019-08-19  Tom Tromey  <tom@tromey.com>

PR gdb/25009
* configure: Rebuild.
* configure.ac: Add --with-static-standard-libraries.
ChangeLog
configure
configure.ac