From 73eae16f3afa1b1f32ab4264c705b1e6bbbd8bbc Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Fri, 15 Apr 2016 21:02:10 +0300 Subject: [PATCH] Get rid of boost requirement. --- Makefile.am | 2 +- algo/hodl/hodl.cpp | 3 +-- bitcoin-config.h | 21 --------------------- build.sh | 2 +- 4 files changed, 3 insertions(+), 25 deletions(-) diff --git a/Makefile.am b/Makefile.am index 35617ad..0583339 100644 --- a/Makefile.am +++ b/Makefile.am @@ -152,7 +152,7 @@ if HAVE_WINDOWS endif cpuminer_LDFLAGS = @LDFLAGS@ -cpuminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ -lssl -lcrypto -lboost_thread -lboost_system +cpuminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ -lssl -lcrypto cpuminer_CPPFLAGS = @LIBCURL_CPPFLAGS@ $(ALL_INCLUDES) cpuminer_CFLAGS = -Wno-pointer-sign -Wno-pointer-to-int-cast $(disable_flags) diff --git a/algo/hodl/hodl.cpp b/algo/hodl/hodl.cpp index 9cf879a..ace4d8c 100644 --- a/algo/hodl/hodl.cpp +++ b/algo/hodl/hodl.cpp @@ -6,8 +6,7 @@ #include "block.h" #include #include "tinyformat.h" -#include -#include +#include #include "hash.h" #include #include diff --git a/bitcoin-config.h b/bitcoin-config.h index e0dbe32..6dc7291 100644 --- a/bitcoin-config.h +++ b/bitcoin-config.h @@ -32,27 +32,6 @@ /* parameter and return value type for __fdelt_chk */ /* #undef FDELT_TYPE */ -/* define if the Boost library is available */ -#define HAVE_BOOST /**/ - -/* define if the Boost::Chrono library is available */ -#define HAVE_BOOST_CHRONO /**/ - -/* define if the Boost::Filesystem library is available */ -#define HAVE_BOOST_FILESYSTEM /**/ - -/* define if the Boost::PROGRAM_OPTIONS library is available */ -#define HAVE_BOOST_PROGRAM_OPTIONS /**/ - -/* define if the Boost::System library is available */ -#define HAVE_BOOST_SYSTEM /**/ - -/* define if the Boost::Thread library is available */ -#define HAVE_BOOST_THREAD /**/ - -/* define if the Boost::Unit_Test_Framework library is available */ -#define HAVE_BOOST_UNIT_TEST_FRAMEWORK /**/ - /* Define to 1 if you have the header file. */ #define HAVE_BYTESWAP_H 1 diff --git a/build.sh b/build.sh index 51a28d2..9d083b6 100755 --- a/build.sh +++ b/build.sh @@ -19,7 +19,7 @@ rm -f config.status extracflags="$extracflags -O3 -march=native -ftree-loop-if-convert-stores -DUSE_ASM" CFLAGS="$extracflags" \ -CXXFLAGS="$CFLAGS" \ +CXXFLAGS="$CFLAGS -std=gnu++11" \ ./configure --with-crypto --with-curl make -j 4