mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
configure: Disable endbr instruction generation for now; needs conditional.
This commit is contained in:
parent
eb70e85bc3
commit
f0bbac466b
1 changed files with 13 additions and 0 deletions
13
configure.ac
13
configure.ac
|
@ -605,6 +605,19 @@ dnl CXXFLAGS+=" -fcheck-pointer-bounds"
|
||||||
AM_COND_IF([GCC],
|
AM_COND_IF([GCC],
|
||||||
[
|
[
|
||||||
CXXFLAGS+=" -fstack-protector-explicit"
|
CXXFLAGS+=" -fstack-protector-explicit"
|
||||||
|
|
||||||
|
dnl These flags should not be used on Intel-CET capable platforms
|
||||||
|
dnl TODO: XXX
|
||||||
|
AS_IF([test "$CXX_EPOCH" -ge "9"],
|
||||||
|
[
|
||||||
|
AM_COND_IF([GENERIC],
|
||||||
|
[
|
||||||
|
CXXFLAGS+=" -fcf-protection=full"
|
||||||
|
], [
|
||||||
|
CXXFLAGS+=" -fcf-protection=none"
|
||||||
|
CXXFLAGS+=" -mmanual-endbr"
|
||||||
|
])
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AM_COND_IF([GCC],
|
AM_COND_IF([GCC],
|
||||||
|
|
Loading…
Reference in a new issue