mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
Merge 28564 via fix_conf_fuzzbin_main
This commit is contained in:
commit
86c5ef3785
14
configure.ac
14
configure.ac
@ -1210,11 +1210,9 @@ fi
|
||||
|
||||
if test "$enable_fuzz_binary" = "yes"; then
|
||||
AC_MSG_CHECKING([whether main function is needed for fuzz binary])
|
||||
AX_CHECK_LINK_FLAG(
|
||||
[],
|
||||
[AC_MSG_RESULT([no])],
|
||||
[AC_MSG_RESULT([yes]); CORE_CPPFLAGS="$CORE_CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"],
|
||||
[$SANITIZER_LDFLAGS],
|
||||
TEMP_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $SANITIZER_LDFLAGS"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([[
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
@ -1222,7 +1220,11 @@ if test "$enable_fuzz_binary" = "yes"; then
|
||||
/* comment to remove the main function ...
|
||||
]],[[
|
||||
*/ int not_main() {
|
||||
]])])
|
||||
]])],
|
||||
[AC_MSG_RESULT([no])],
|
||||
[AC_MSG_RESULT([yes]); CORE_CPPFLAGS="$CORE_CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"]
|
||||
)
|
||||
LDFLAGS="$TEMP_LDFLAGS"
|
||||
fi
|
||||
|
||||
dnl Check for libsecp256k1, only if explicitly requested
|
||||
|
Loading…
Reference in New Issue
Block a user