0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

configure: Disable endbr instruction generation for now; needs conditional.

This commit is contained in:
Jason Volk 2019-11-30 19:31:07 -08:00
parent eb70e85bc3
commit f0bbac466b

View file

@ -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],