Skip to content

Commit

Permalink
build: Perform boost::process detection with BOOST_CPPFLAGS
Browse files Browse the repository at this point in the history
Pass boost's build settings to boost-specific library detection. As
boost::process is header-only, setting the CPPFLAGS is enough, there is
no need to set LIBS.

Closes bitcoin#22269.
  • Loading branch information
laanwj committed Jun 21, 2021
1 parent 6a67366 commit 8d87a0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1425,13 +1425,16 @@ if test x$use_boost = xyes; then
dnl Opt-in to Boost Process if external signer support is requested
if test "x$use_external_signer" != xno; then
AC_MSG_CHECKING(for Boost Process)
TEMP_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <boost/process.hpp>]],
[[ boost::process::child* child = new boost::process::child; delete child; ]])],
[ AC_MSG_RESULT(yes)
AC_DEFINE([ENABLE_EXTERNAL_SIGNER],,[define if external signer support is enabled])
],
[ AC_MSG_ERROR([Boost::Process is required for external signer support, but not available!])]
)
CPPFLAGS="$TEMP_CPPFLAGS"
fi

if test x$suppress_external_warnings != xno; then
Expand Down

0 comments on commit 8d87a0c

Please sign in to comment.