commit 352677556e14480753f75e8abe1f584f1580f1b2
parent ecb91e75e4770fa76c64c7b1932985de024d693e
Author: Simon South <simon@simonsouth.net>
Date: Wed, 22 Sep 2021 14:42:45 -0400
configure.ac: Define ENABLE_FRAGILE_HARDENING macro
Allow conditional compilation based on whether the
"--enable-fragile-hardening" configure option was specified.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -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]))
if test "x$enable_expensive_hardening" = "xyes" || test "x$enable_fragile_hardening" = "xyes"; then
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])
fi