Skip to content

Commit f709ad0

Browse files
committed
build: Fix libevent linking for bench_bitcoin binary
1 parent 5bf45fe commit f709ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ if test x$use_pkgconfig = xyes; then
12551255
if test x$use_qr != xno; then
12561256
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
12571257
fi
1258-
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
1258+
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench != xnonononono; then
12591259
PKG_CHECK_MODULES([EVENT], [libevent],, [AC_MSG_ERROR(libevent not found.)])
12601260
if test x$TARGET_OS != xwindows; then
12611261
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads],, [AC_MSG_ERROR(libevent_pthreads not found.)])
@@ -1275,7 +1275,7 @@ if test x$use_pkgconfig = xyes; then
12751275
)
12761276
else
12771277

1278-
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
1278+
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench != xnonononono; then
12791279
AC_CHECK_HEADER([event2/event.h],, AC_MSG_ERROR(libevent headers missing),)
12801280
AC_CHECK_LIB([event],[main],EVENT_LIBS=-levent,AC_MSG_ERROR(libevent missing))
12811281
if test x$TARGET_OS != xwindows; then

0 commit comments

Comments
 (0)