|
|
|
@ -619,7 +619,7 @@ CXXFLAGS="$TEMP_CXXFLAGS"
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -DHAVE_BUILD_INFO"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -DHAVE_BUILD_INFO"
|
|
|
|
|
|
|
|
|
|
AC_ARG_WITH([utils],
|
|
|
|
|
[AS_HELP_STRING([--with-utils],
|
|
|
|
@ -701,7 +701,7 @@ case $host in
|
|
|
|
|
AC_MSG_ERROR([windres not found])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_MT -DWIN32 -D_WINDOWS -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -D_MT -DWIN32 -D_WINDOWS -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN"
|
|
|
|
|
|
|
|
|
|
dnl libtool insists upon adding -nostdlib and a list of objects/libs to link against.
|
|
|
|
|
dnl That breaks our ability to build dll's with static libgcc/libstdc++/libssp. Override
|
|
|
|
@ -750,18 +750,18 @@ case $host in
|
|
|
|
|
if test "$use_upnp" != "no" && $BREW list --versions miniupnpc >/dev/null; then
|
|
|
|
|
miniupnpc_prefix=$($BREW --prefix miniupnpc 2>/dev/null)
|
|
|
|
|
if test "$suppress_external_warnings" != "no"; then
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -isystem $miniupnpc_prefix/include"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -isystem $miniupnpc_prefix/include"
|
|
|
|
|
else
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$miniupnpc_prefix/include"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -I$miniupnpc_prefix/include"
|
|
|
|
|
fi
|
|
|
|
|
LDFLAGS="$LDFLAGS -L$miniupnpc_prefix/lib"
|
|
|
|
|
fi
|
|
|
|
|
if test "$use_natpmp" != "no" && $BREW list --versions libnatpmp >/dev/null; then
|
|
|
|
|
libnatpmp_prefix=$($BREW --prefix libnatpmp 2>/dev/null)
|
|
|
|
|
if test "$suppress_external_warnings" != "no"; then
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -isystem $libnatpmp_prefix/include"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -isystem $libnatpmp_prefix/include"
|
|
|
|
|
else
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$libnatpmp_prefix/include"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -I$libnatpmp_prefix/include"
|
|
|
|
|
fi
|
|
|
|
|
LDFLAGS="$LDFLAGS -L$libnatpmp_prefix/lib"
|
|
|
|
|
fi
|
|
|
|
@ -790,7 +790,7 @@ case $host in
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AX_CHECK_LINK_FLAG([-Wl,-headerpad_max_install_names], [LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"], [], [$LDFLAG_WERROR])
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0"
|
|
|
|
|
OBJCXXFLAGS="$CXXFLAGS"
|
|
|
|
|
;;
|
|
|
|
|
*android*)
|
|
|
|
@ -880,13 +880,13 @@ AC_FUNC_STRERROR_R
|
|
|
|
|
if test "$ac_cv_sys_file_offset_bits" != "" &&
|
|
|
|
|
test "$ac_cv_sys_file_offset_bits" != "no" &&
|
|
|
|
|
test "$ac_cv_sys_file_offset_bits" != "unknown"; then
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test "$ac_cv_sys_large_files" != "" &&
|
|
|
|
|
test "$ac_cv_sys_large_files" != "no" &&
|
|
|
|
|
test "$ac_cv_sys_large_files" != "unknown"; then
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_SEARCH_LIBS([clock_gettime],[rt])
|
|
|
|
@ -1299,7 +1299,7 @@ if test "$enable_fuzz" = "yes"; then
|
|
|
|
|
AX_CHECK_LINK_FLAG(
|
|
|
|
|
[-fsanitize=$use_sanitizers],
|
|
|
|
|
[AC_MSG_RESULT([no])],
|
|
|
|
|
[AC_MSG_RESULT([yes]); CPPFLAGS="$CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"],
|
|
|
|
|
[AC_MSG_RESULT([yes]); CORE_CPPFLAGS="$CORE_CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"],
|
|
|
|
|
[],
|
|
|
|
|
[AC_LANG_PROGRAM([[
|
|
|
|
|
#include <cstdint>
|
|
|
|
@ -1323,7 +1323,7 @@ else
|
|
|
|
|
QT_TEST_INCLUDES=SUPPRESS_WARNINGS($QT_TEST_INCLUDES)
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"
|
|
|
|
|
CORE_CPPFLAGS="$CORE_CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test "$enable_wallet" != "no"; then
|
|
|
|
@ -1873,6 +1873,7 @@ AC_SUBST(BITCOIN_MP_NODE_NAME)
|
|
|
|
|
AC_SUBST(BITCOIN_MP_GUI_NAME)
|
|
|
|
|
|
|
|
|
|
AC_SUBST(RELDFLAGS)
|
|
|
|
|
AC_SUBST(CORE_CPPFLAGS)
|
|
|
|
|
AC_SUBST(DEBUG_CPPFLAGS)
|
|
|
|
|
AC_SUBST(WARN_CXXFLAGS)
|
|
|
|
|
AC_SUBST(NOWARN_CXXFLAGS)
|
|
|
|
@ -2004,7 +2005,7 @@ echo " build os = $build_os"
|
|
|
|
|
echo
|
|
|
|
|
echo " CC = $CC"
|
|
|
|
|
echo " CFLAGS = $PTHREAD_CFLAGS $CFLAGS"
|
|
|
|
|
echo " CPPFLAGS = $DEBUG_CPPFLAGS $HARDENED_CPPFLAGS $CPPFLAGS"
|
|
|
|
|
echo " CPPFLAGS = $DEBUG_CPPFLAGS $HARDENED_CPPFLAGS $CORE_CPPFLAGS $CPPFLAGS"
|
|
|
|
|
echo " CXX = $CXX"
|
|
|
|
|
echo " CXXFLAGS = $LTO_CXXFLAGS $DEBUG_CXXFLAGS $HARDENED_CXXFLAGS $WARN_CXXFLAGS $NOWARN_CXXFLAGS $ERROR_CXXFLAGS $GPROF_CXXFLAGS $CXXFLAGS"
|
|
|
|
|
echo " LDFLAGS = $LTO_LDFLAGS $PTHREAD_LIBS $HARDENED_LDFLAGS $GPROF_LDFLAGS $LDFLAGS"
|
|
|
|
|