Deactivate _FORTIFY_SOURCE in jitterentropy-base.c master
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 30 Oct 2023 20:39:26 +0000 (21:39 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 31 Oct 2023 11:45:22 +0000 (12:45 +0100)
commit44365eb1e1165f2a44cb31f404b04cf85031718e
treecd5ab732b5651fc56837ba9dd01e8572d4d3a17e
parent7aefb47be57df0467d97d539f7fe9e23e607a3b4
Deactivate _FORTIFY_SOURCE in jitterentropy-base.c

This fixes compilation with glibc.

_FORTIFY_SOURCE only works with compiler optimizations activated.
We have to deactivate it when we set -O0.

This fixes the following error message with glibc:
 error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]

musl libc does not show an error message in this case, but has the same
internal problems.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
CMakeLists.txt