Skip to content

Commit d5a3fd1

Browse files
committed
Merge pull request #4571
a7ec027 gitian: remove unneeded option after last commit (Cory Fields) 460b32d build: fix broken boost chrono check on some platforms (Cory Fields)
2 parents afa71fb + a7ec027 commit d5a3fd1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

configure.ac

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ AC_TRY_COMPILE([#include <sys/socket.h>],
392392
[ AC_MSG_RESULT(no)]
393393
)
394394

395+
AC_SEARCH_LIBS([clock_gettime],[rt])
396+
395397
LEVELDB_CPPFLAGS=
396398
LIBLEVELDB=
397399
LIBMEMENV=
@@ -460,11 +462,8 @@ dnl after 1.56.
460462
dnl If neither is available, abort.
461463
dnl If sleep_for is used, boost_chrono becomes a requirement.
462464
if test x$ax_cv_boost_chrono = xyes; then
463-
dnl Allow passing extra needed dependency libraries for boost-chrono from static gitian build
464-
BOOST_CHRONO_LIB="$BOOST_CHRONO_LIB $BOOST_CHRONO_EXTRALIBS"
465-
466465
TEMP_LIBS="$LIBS"
467-
LIBS="$LIBS $BOOST_LIBS $BOOST_CHRONO_LIB"
466+
LIBS="$BOOST_LIBS $BOOST_CHRONO_LIB $LIBS"
468467
TEMP_CPPFLAGS="$CPPFLAGS"
469468
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
470469
AC_TRY_LINK([
@@ -486,7 +485,7 @@ fi
486485

487486
if test x$boost_sleep != xyes; then
488487
TEMP_LIBS="$LIBS"
489-
LIBS="$LIBS $BOOST_LIBS"
488+
LIBS="$BOOST_LIBS $LIBS"
490489
TEMP_CPPFLAGS="$CPPFLAGS"
491490
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
492491
AC_TRY_LINK([

contrib/gitian-descriptors/gitian-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ script: |
5959
local: *;
6060
};' > $LINKER_SCRIPT
6161
function do_configure {
62-
./configure "$@" --enable-upnp-default --prefix=$STAGING --with-protoc-bindir=$STAGING/host/bin --with-qt-bindir=$STAGING/bin --with-boost=$STAGING --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib -Wl,--version-script=$LINKER_SCRIPT ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}" BOOST_CHRONO_EXTRALIBS="-lrt" --enable-glibc-back-compat
62+
./configure "$@" --enable-upnp-default --prefix=$STAGING --with-protoc-bindir=$STAGING/host/bin --with-qt-bindir=$STAGING/bin --with-boost=$STAGING --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib -Wl,--version-script=$LINKER_SCRIPT ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}" --enable-glibc-back-compat
6363
}
6464
#
6565
cd bitcoin

0 commit comments

Comments
 (0)