mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-01 15:02:34 +02:00
Revert "build: more robustly check for fcf-protection support"
We no-longer support Clang 7 (#24164).
This reverts commit e9189a750b
.
This commit is contained in:
parent
b9ef5a10e2
commit
a7973bf8f4
@ -935,10 +935,7 @@ if test "$use_hardening" != "no"; then
|
|||||||
AX_CHECK_COMPILE_FLAG([-Wstack-protector], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -Wstack-protector"])
|
AX_CHECK_COMPILE_FLAG([-Wstack-protector], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -Wstack-protector"])
|
||||||
AX_CHECK_COMPILE_FLAG([-fstack-protector-all], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-protector-all"])
|
AX_CHECK_COMPILE_FLAG([-fstack-protector-all], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-protector-all"])
|
||||||
|
|
||||||
dnl -fcf-protection used with Clang 7 causes ld to emit warnings:
|
AX_CHECK_COMPILE_FLAG([-fcf-protection=full], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=full"])
|
||||||
dnl ld: error: ... <corrupt x86 feature size: 0x8>
|
|
||||||
dnl Use CHECK_LINK_FLAG & --fatal-warnings to ensure we won't use the flag in this case.
|
|
||||||
AX_CHECK_LINK_FLAG([-fcf-protection=full], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=full"], [], [$LDFLAG_WERROR])
|
|
||||||
|
|
||||||
case $host in
|
case $host in
|
||||||
*mingw*)
|
*mingw*)
|
||||||
|
Loading…
Reference in New Issue
Block a user