diff options
author | 2020-09-28 08:22:25 -0400 | |
---|---|---|
committer | 2020-09-28 08:22:25 -0400 | |
commit | 21337a0dc8b92559083358623c840f65309a79a4 (patch) | |
tree | d0e28dede6986f4567f765782e45ec3909e36e86 /configure.ac | |
parent | Merge pull request #3642 from netblue30/rusty-snake-patch-1 (diff) | |
download | firejail-21337a0dc8b92559083358623c840f65309a79a4.tar.gz firejail-21337a0dc8b92559083358623c840f65309a79a4.tar.zst firejail-21337a0dc8b92559083358623c840f65309a79a4.zip |
compile support for GCC static analyzer (--enable-analyzer)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 60dc5f42c..d62cad843 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -39,6 +39,12 @@ AX_CHECK_COMPILE_FLAG( | |||
39 | [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -fstack-protector-strong"] | 39 | [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -fstack-protector-strong"] |
40 | ) | 40 | ) |
41 | 41 | ||
42 | AC_ARG_ENABLE([analyzer], | ||
43 | AS_HELP_STRING([--enable-analyzer], [enable GCC 10 static analyzer])) | ||
44 | AS_IF([test "x$enable_analyzer" = "xyes"], [ | ||
45 | EXTRA_CFLAGS+=" -fanalyzer" | ||
46 | ]) | ||
47 | |||
42 | HAVE_APPARMOR="" | 48 | HAVE_APPARMOR="" |
43 | AC_ARG_ENABLE([apparmor], | 49 | AC_ARG_ENABLE([apparmor], |
44 | AS_HELP_STRING([--enable-apparmor], [enable apparmor])) | 50 | AS_HELP_STRING([--enable-apparmor], [enable apparmor])) |