aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-03-23 19:28:05 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-03-23 19:28:05 -0400
commite3f64f751ec2caaf4c209f95eefab5bc9166db0e (patch)
tree9e52bf8ec37c4b53813144d84a3df8989efb82ed /configure
parentadded java support for libreoffice (diff)
downloadfirejail-e3f64f751ec2caaf4c209f95eefab5bc9166db0e.tar.gz
firejail-e3f64f751ec2caaf4c209f95eefab5bc9166db0e.tar.zst
firejail-e3f64f751ec2caaf4c209f95eefab5bc9166db0e.zip
support Spectre mitigation patch for gcc compiler
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 30 insertions, 0 deletions
diff --git a/configure b/configure
index 761cebc1e..80f66f8b3 100755
--- a/configure
+++ b/configure
@@ -646,6 +646,7 @@ EGREP
646GREP 646GREP
647CPP 647CPP
648HAVE_APPARMOR 648HAVE_APPARMOR
649EXTRA_CFLAGS
649RANLIB 650RANLIB
650INSTALL_DATA 651INSTALL_DATA
651INSTALL_SCRIPT 652INSTALL_SCRIPT
@@ -3105,6 +3106,33 @@ else
3105fi 3106fi
3106 3107
3107 3108
3109
3110HAVE_SPECTRE="no"
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Spectre mitigation support in gcc compiler" >&5
3112$as_echo_n "checking for Spectre mitigation support in gcc compiler... " >&6; }
3113if test "$CC" = "gcc"; then :
3114
3115 HAVE_SPECTRE="yes"
3116 $CC -mindirect-branch=thunk -c dummy.c || HAVE_SPECTRE="no"
3117 rm -f dummy.o
3118
3119fi
3120if test "$HAVE_SPECTRE" = "yes"; then :
3121
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3123$as_echo "yes" >&6; }
3124 EXTRA_CFLAGS+="-mindirect-branch=thunk"
3125
3126fi
3127if test "$HAVE_SPECTRE" = "no"; then :
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... not available" >&5
3130$as_echo "... not available" >&6; }
3131
3132fi
3133
3134
3135
3108HAVE_APPARMOR="" 3136HAVE_APPARMOR=""
3109# Check whether --enable-apparmor was given. 3137# Check whether --enable-apparmor was given.
3110if test "${enable_apparmor+set}" = set; then : 3138if test "${enable_apparmor+set}" = set; then :
@@ -5024,7 +5052,9 @@ echo " file transfer support: $HAVE_FILE_TRANSFER"
5024echo " overlayfs support: $HAVE_OVERLAYFS" 5052echo " overlayfs support: $HAVE_OVERLAYFS"
5025echo " git install support: $HAVE_GIT_INSTALL" 5053echo " git install support: $HAVE_GIT_INSTALL"
5026echo " busybox workaround: $BUSYBOX_WORKAROUND" 5054echo " busybox workaround: $BUSYBOX_WORKAROUND"
5055echo " Spectre compiler patch: $HAVE_SPECTRE"
5027echo " EXTRA_LDFLAGS: $EXTRA_LDFLAGS" 5056echo " EXTRA_LDFLAGS: $EXTRA_LDFLAGS"
5057echo " EXTRA_CFLAGS: $EXTRA_CFLAGS"
5028echo " fatal warnings: $HAVE_FATAL_WARNINGS" 5058echo " fatal warnings: $HAVE_FATAL_WARNINGS"
5029echo " Gcov instrumentation: $HAVE_GCOV" 5059echo " Gcov instrumentation: $HAVE_GCOV"
5030echo " Install contrib scripts: $HAVE_CONTRIB_INSTALL" 5060echo " Install contrib scripts: $HAVE_CONTRIB_INSTALL"