Fix build on rhES5
authorTom Tromey <tromey@adacore.com>
Wed, 12 May 2021 18:39:22 +0000 (12:39 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 9 Nov 2021 21:21:39 +0000 (14:21 -0700)
commitdf9ebc472a162306dee8ba6e02b99963c2babb7c
tree56d5773c20558dcbd6eb5689f6187ea277e02653
parent73bcd9e0d6d91c63b0f71ebb5b5c3a85c79bbe08
Fix build on rhES5

The rhES5 build failed due to an upstream import a while back.  The
bug here is that, while the 'personality' function exists,
ADDR_NO_RANDOMIZE is only defined in <linux/personality.h>, not
<sys/personality.h>.

However, <linux/personality.h> does not declare the 'personality'
function, and <sys/personality.h> and <linux/personality.h> cannot
both be included.

This patch restores one of the removed configure checks and updates
the code to check it.

We had this as a local patch at AdaCore, because it seemed like there
was no interest upstream.  However, now it turns out that this fixes
PR build/28555, so I'm sending it now.
gdb/config.in
gdb/configure
gdb/nat/linux-personality.c
gdbserver/config.in
gdbserver/configure
gdbsupport/common.m4
gdbsupport/config.in
gdbsupport/configure
This page took 0.024338 seconds and 4 git commands to generate.