Re: [PATCH] configure: Test for _FORTIFY_SOURCE=3 support.

2022-03-14 Thread Mark Wielaard
Hi, On Thu, 2022-03-10 at 18:06 +0100, Mark Wielaard wrote: > _FORTIFY_SOURCE=3 adds extra glibc (dynamic) fortification checks > when using GCC 12. > > This adds a configure check to see if -D_FORTIFY_SOURCE=3 can be > used. > If not, configure will fall back to -D_FORTIFY_SOURCE=2. > > On some

[PATCH] configure: Test for _FORTIFY_SOURCE=3 support.

2022-03-10 Thread Mark Wielaard
_FORTIFY_SOURCE=3 adds extra glibc (dynamic) fortification checks when using GCC 12. This adds a configure check to see if -D_FORTIFY_SOURCE=3 can be used. If not, configure will fall back to -D_FORTIFY_SOURCE=2. On some older glibc versions (glibc 2.17) using -D_FORTIFY_SOURCE=3 provides the sam