diff options
author | Tom Tromey <tom@tromey.com> | 2023-10-01 09:16:13 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-10-12 18:23:13 -0600 |
commit | 5772d798236d493a0cdfd75b41520527e3129759 (patch) | |
tree | 2f2a9f1e54267fb1a403483c4bd3d12d712eb929 /gdbsupport/common.m4 | |
parent | 59fed66dcef07b7b33c72d47b609e05569c62523 (diff) | |
download | gdb-5772d798236d493a0cdfd75b41520527e3129759.zip gdb-5772d798236d493a0cdfd75b41520527e3129759.tar.gz gdb-5772d798236d493a0cdfd75b41520527e3129759.tar.bz2 |
Move -lsocket check to common.m4
A user pointed out that the -lsocket check in gdb should also apply to
gdbserver -- otherwise it can't find the Solaris socketpair. This
patch makes the change. It also removes a couple of redundant
function checks from gdb's configure.ac.
This was tested by the person who reported the bug.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30927
Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdbsupport/common.m4')
-rw-r--r-- | gdbsupport/common.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4 index 3909ec8..baee66f 100644 --- a/gdbsupport/common.m4 +++ b/gdbsupport/common.m4 @@ -51,6 +51,8 @@ AC_DEFUN([GDB_AC_COMMON], [ AC_FUNC_MMAP AC_FUNC_FORK + # Some systems (e.g. Solaris) have `socketpair' in libsocket. + AC_SEARCH_LIBS(socketpair, socket) AC_CHECK_FUNCS([fdwalk getrlimit pipe pipe2 poll socketpair sigaction \ ptrace64 sbrk setns sigaltstack sigprocmask \ setpgid setpgrp getrusage getauxval sigtimedwait]) |