Skip to content
Commit a3090c2c authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

scripts: Fix fortify checks if compiler does not support _FORTIFY_SOURCE=3



The 30379efa added _FORTIFY_SOURCE checks without check if compiler
does support all used fortify levels.  This patch fixes it by first
checking at configure time the maximum support fortify level and using
it instead of a pre-defined one.

Checked on x86_64 with gcc 11, 12, and 13.

Reviewed-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
Tested-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent 6c85c5a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment