aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2019-06-26 10:24:28 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2019-06-26 10:24:28 -0400
commit37b23e8d53ce4d1f96d21fb89b6f702cc8a8c788 (patch)
tree36d309f37cc288fe527eb53414ed575c36024083 /configure.ac
parentSilence xauth output in src/firejail/x11.c (#2796) (diff)
downloadfirejail-37b23e8d53ce4d1f96d21fb89b6f702cc8a8c788.tar.gz
firejail-37b23e8d53ce4d1f96d21fb89b6f702cc8a8c788.tar.zst
firejail-37b23e8d53ce4d1f96d21fb89b6f702cc8a8c788.zip
testing for -fstack-clash-protection and -fstack-protector-strong compile flags
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
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)
33AX_CHECK_COMPILE_FLAG(
34 [-fstack-clash-protection],
35 [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -fstack-clash-protection"]
36)
37AX_CHECK_COMPILE_FLAG(
38 [-fstack-protector-strong],
39 [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -fstack-protector-strong"]
40)
29 41
30HAVE_APPARMOR="" 42HAVE_APPARMOR=""
31AC_ARG_ENABLE([apparmor], 43AC_ARG_ENABLE([apparmor],