Skip to content

Commit 8d87a0c

Browse files
committed
build: Perform boost::process detection with BOOST_CPPFLAGS
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 #22269.
1 parent 6a67366 commit 8d87a0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,13 +1425,16 @@ if test x$use_boost = xyes; then
14251425
dnl Opt-in to Boost Process if external signer support is requested
14261426
if test "x$use_external_signer" != xno; then
14271427
AC_MSG_CHECKING(for Boost Process)
1428+
TEMP_CPPFLAGS="$CPPFLAGS"
1429+
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
14281430
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <boost/process.hpp>]],
14291431
[[ boost::process::child* child = new boost::process::child; delete child; ]])],
14301432
[ AC_MSG_RESULT(yes)
14311433
AC_DEFINE([ENABLE_EXTERNAL_SIGNER],,[define if external signer support is enabled])
14321434
],
14331435
[ AC_MSG_ERROR([Boost::Process is required for external signer support, but not available!])]
14341436
)
1437+
CPPFLAGS="$TEMP_CPPFLAGS"
14351438
fi
14361439

14371440
if test x$suppress_external_warnings != xno; then

0 commit comments

Comments
 (0)