]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add configure check for std::thread
authorTom Tromey <tom@tromey.com>
Fri, 15 Mar 2019 23:38:06 +0000 (17:38 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 1 Oct 2019 02:30:39 +0000 (20:30 -0600)
commit43a189f90381627d3d0e8cc75d8cc3b3bebe7e8c
tree67a2a6cb587acfbe45505fb9bcd1e687a5dd7f5f
parent15c2f6395b0d409d79eeb754d70d4078dace00fa
Add configure check for std::thread

This adds a configure check for std::thread.  This is needed because
std::thread is not available on some systems, like some versions of
mingw and DJGPP.

This also adds configury to make sure that a threaded gdb links
against the correct threading library (-lpthread or the like), and
passes the right flags (e.g., -pthread) to the compilations.

gdb/ChangeLog
2019-09-30  Tom Tromey  <tom@tromey.com>

* acinclude.m4: Include ax_pthread.m4.
* Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
(INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
(CLIBS): Use PTHREAD_LIBS.
(aclocal_m4_deps): Add ax_pthread.m4.
* config.in, configure: Rebuild.
* gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.

gdb/gdbserver/ChangeLog
2019-09-30  Tom Tromey  <tom@tromey.com>

* acinclude.m4: Include ax_pthread.m4.
* config.in, configure: Rebuild.
gdb/ChangeLog
gdb/Makefile.in
gdb/acinclude.m4
gdb/config.in
gdb/configure
gdb/gdbserver/ChangeLog
gdb/gdbserver/acinclude.m4
gdb/gdbserver/config.in
gdb/gdbserver/configure
gdb/gdbsupport/common.m4