Skip to content

Commit

Permalink
Revert "build: Enable control-flow protection for secp256k1 subtree"
Browse files Browse the repository at this point in the history
This reverts commit 1eb63b9.
  • Loading branch information
hebasto committed Aug 21, 2024
1 parent 7ff2743 commit a836e6c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -848,10 +848,7 @@ if test "$use_hardening" != "no"; then
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([-fcf-protection=full], [
HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=full"
HARDENED_CFLAGS="$HARDENED_CFLAGS -fcf-protection=full"
])
AX_CHECK_COMPILE_FLAG([-fcf-protection=full], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=full"])

case $host in
*mingw*)
Expand Down Expand Up @@ -1696,9 +1693,6 @@ CPPFLAGS="$CPPFLAGS_TEMP"
if test -n "$use_sanitizers"; then
export SECP_CFLAGS="$SECP_CFLAGS $SANITIZER_CFLAGS"
fi
if test "$use_hardening" != "no"; then
export SECP_CFLAGS="$SECP_CFLAGS $HARDENED_CFLAGS"
fi
ac_configure_args="${ac_configure_args} --disable-shared --with-pic --enable-benchmark=no --enable-module-recovery --disable-module-ecdh"
AC_CONFIG_SUBDIRS([src/secp256k1])

Expand Down

0 comments on commit a836e6c

Please sign in to comment.