In file included from /usr/include/stdlib.h:24:0,
/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
cc1: all warnings being treated as errors
Autoconf checks if FORTIFY_SOURCE works, but it does so without -Werror
which is later used for compiling:
if test "x$debug" = "xyes" ; then
WARNING_CFLAGS="-g -Wall -Werror"
I attempted to fix this by considering WARNING_CFLAGS in
GCC_FORTIFY_SOURCE_CC, but Autoconf is a mystery to me.
In any case, it seems strange that _FORTIFY_SOURCE would be used only
with debugging while the standard library warns about its use without