From: Simon South Date: Wed, 22 Sep 2021 18:42:45 +0000 (-0400) Subject: configure.ac: Define ENABLE_FRAGILE_HARDENING macro X-Git-Tag: tor-0.4.7.2-alpha~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=352677556e14480753f75e8abe1f584f1580f1b2;p=thirdparty%2Ftor.git configure.ac: Define ENABLE_FRAGILE_HARDENING macro Allow conditional compilation based on whether the "--enable-fragile-hardening" configure option was specified. --- diff --git a/configure.ac b/configure.ac index 23ba4b0d2d..b4617a4003 100644 --- 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