Merge pull request #682 from hackersdotmu/master

Add spectre v2 migitations for GCC
This commit is contained in:
Frank Denis 2018-02-21 01:43:51 +01:00 committed by GitHub
commit a7d03e0f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,9 @@ AC_CHECK_DEFINE([_FORTIFY_SOURCE], [], [
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
[CFLAGS="$CFLAGS -fvisibility=hidden"])
AX_CHECK_COMPILE_FLAG([-mfunction-return=thunk -mindirect-branch=thunk],
[CFLAGS="$CFLAGS -mfunction-return=thunk -mindirect-branch=thunk"])
AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [
AX_CHECK_COMPILE_FLAG([-fPIC], [CFLAGS="$CFLAGS -fPIC"])
])