configure.ac: Define ENABLE_FRAGILE_HARDENING macro

Allow conditional compilation based on whether the
"--enable-fragile-hardening" configure option was specified.
This commit is contained in:
Simon South 2021-09-22 14:42:45 -04:00
parent ecb91e75e4
commit 352677556e

View File

@ -233,6 +233,7 @@ AC_ARG_ENABLE(fragile-hardening,
AS_HELP_STRING(--enable-fragile-hardening, [enable more fragile and expensive compiler hardening; makes Tor slower])) AS_HELP_STRING(--enable-fragile-hardening, [enable more fragile and expensive compiler hardening; makes Tor slower]))
if test "x$enable_expensive_hardening" = "xyes" || test "x$enable_fragile_hardening" = "xyes"; then if test "x$enable_expensive_hardening" = "xyes" || test "x$enable_fragile_hardening" = "xyes"; then
fragile_hardening="yes" fragile_hardening="yes"
AC_DEFINE(ENABLE_FRAGILE_HARDENING, 1, [Defined if we're building with additional, fragile and expensive compiler hardening])
AC_DEFINE(DEBUG_SMARTLIST, 1, [Enable smartlist debugging]) AC_DEFINE(DEBUG_SMARTLIST, 1, [Enable smartlist debugging])
fi fi