]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
configure.ac: Define ENABLE_FRAGILE_HARDENING macro
authorSimon South <simon@simonsouth.net>
Wed, 22 Sep 2021 18:42:45 +0000 (14:42 -0400)
committerSimon South <simon@simonsouth.net>
Mon, 27 Sep 2021 16:13:47 +0000 (12:13 -0400)
Allow conditional compilation based on whether the
"--enable-fragile-hardening" configure option was specified.

configure.ac

index 23ba4b0d2d1857eb73e5ca574efeebdfd10fa9f0..b4617a400364e7e66b9c400e19f2f3c3d29d2a4e 100644 (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]))
 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