diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 675c8fd65..27dcb39c5 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -2,7 +2,11 @@ | |||
2 | # Note: | 2 | # Note: |
3 | # | 3 | # |
4 | # If for any reason autoconf fails, run "autoreconf -i --install " and try again. | 4 | # If for any reason autoconf fails, run "autoreconf -i --install " and try again. |
5 | # We rely soley on autoconf, without automake. Apparently, in this case | 5 | # This is how the error looks like on Arch Linux: |
6 | # ./configure: line 3064: syntax error near unexpected token `newline' | ||
7 | # ./configure: line 3064: `AX_CHECK_COMPILE_FLAG(' | ||
8 | # | ||
9 | # We rely solely on autoconf, without automake. Apparently, in this case | ||
6 | # the macros from m4 directory are not picked up by default by automake. | 10 | # the macros from m4 directory are not picked up by default by automake. |
7 | # "autoreconf -i --install" seems to fix the problem. | 11 | # "autoreconf -i --install" seems to fix the problem. |
8 | # | 12 | # |
@@ -26,6 +30,14 @@ AX_CHECK_COMPILE_FLAG( | |||
26 | [-mretpoline], | 30 | [-mretpoline], |
27 | [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -mretpoline"] | 31 | [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -mretpoline"] |
28 | ) | 32 | ) |
33 | AX_CHECK_COMPILE_FLAG( | ||
34 | [-fstack-clash-protection], | ||
35 | [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -fstack-clash-protection"] | ||
36 | ) | ||
37 | AX_CHECK_COMPILE_FLAG( | ||
38 | [-fstack-protector-strong], | ||
39 | [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -fstack-protector-strong"] | ||
40 | ) | ||
29 | 41 | ||
30 | HAVE_APPARMOR="" | 42 | HAVE_APPARMOR="" |
31 | AC_ARG_ENABLE([apparmor], | 43 | AC_ARG_ENABLE([apparmor], |