--- freem/configure.ac 2025/04/12 00:42:05 1.29 +++ freem/configure.ac 2025/04/12 00:54:16 1.30 @@ -1,5 +1,5 @@ # -# $Id: configure.ac,v 1.29 2025/04/12 00:42:05 snw Exp $ +# $Id: configure.ac,v 1.30 2025/04/12 00:54:16 snw Exp $ # autoconf rules for FreeM # # @@ -24,6 +24,9 @@ # along with FreeM. If not, see . # # $Log: configure.ac,v $ +# Revision 1.30 2025/04/12 00:54:16 snw +# Set -fno-stack-protector and -fno-mudflap where available, and set _FORTIFY_SOURCE to 0 everywhere +# # Revision 1.29 2025/04/12 00:42:05 snw # Remove -Wall and all supporting directives # @@ -114,7 +117,9 @@ AX_LIB_READLINE # AX_CHECK_COMPILE_FLAG([-Wno-stringop-truncation], [AX_APPEND_FLAG([-Wno-stringop-truncation])]) # AX_CHECK_COMPILE_FLAG([-Wno-parentheses], [AX_APPEND_FLAG([-Wno-parentheses])]) # AX_CHECK_COMPILE_FLAG([-Wno-pointer-sign], [AX_APPEND_FLAG([-Wno-pointer-sign])]) -# AX_CHECK_COMPILE_FLAG([-Wno-unused-result], [AX_APPEND_FLAG([-Wno-unused-result])]) +# +AX_CHECK_COMPILE_FLAG([-fno-stack-protector], [AX_APPEND_FLAG([-fno-stack-protector])]) +AX_CHECK_COMPILE_FLAG([-fno-mudflap], [AX_APPEND_FLAG([-fno-mudflap])]) # check for libm AC_CHECK_LIB([m], [powf])