Skip to content

Commit 6997885

Browse files
committed
build: Fix Boost.Process check for Boost 1.73 and older
1 parent 2199ef7 commit 6997885

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,9 +1438,13 @@ if test "$use_external_signer" != "no"; then
14381438
;;
14391439
*)
14401440
AC_MSG_CHECKING([whether Boost.Process can be used])
1441+
TEMP_LDFLAGS="$LDFLAGS"
1442+
dnl Boost 1.73 and older require the following workaround.
1443+
LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS"
14411444
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <boost/process.hpp>]])],
14421445
[have_boost_process="yes"],
14431446
[have_boost_process="no"])
1447+
LDFLAGS="$TEMP_LDFLAGS"
14441448
AC_MSG_RESULT([$have_boost_process])
14451449
if test "$have_boost_process" = "yes"; then
14461450
use_external_signer="yes"

0 commit comments

Comments
 (0)