Commit 4897c38a authored by Pavel Vasin's avatar Pavel Vasin

add dependency on libsodium

parent 27a0b045
......@@ -410,7 +410,7 @@ macx:QMAKE_INFO_PLIST = share/qt/Info.plist
# Set libraries and includes at end, to use platform-defined defaults if not overridden
INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH $$QRENCODE_INCLUDE_PATH
LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX -lsodium
# -lgdi32 has to happen after -lcrypto (see #681)
windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
......
......@@ -66,6 +66,7 @@ sudo apt-get install libssl-dev
sudo apt-get install libdb++-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libqrencode-dev
sudo apt-get install libsodium-dev
If using Boost 1.37, append -mt to the boost libraries in the makefile.
......@@ -73,7 +74,7 @@ If using Boost 1.37, append -mt to the boost libraries in the makefile.
Dependency Build Instructions: Gentoo
-------------------------------------
emerge -av1 --noreplace boost openssl sys-libs/db
emerge -av1 --noreplace boost openssl sys-libs/db libsodium
Take the following steps to build (no UPnP support):
cd ${BLACKCOIN_DIR}/src
......
......@@ -15,7 +15,7 @@ distribution are installed, for Debian and Ubuntu these are:
apt-get install qt5-default qt5-qmake qtbase5-dev-tools qttools5-dev-tools \
build-essential libboost-dev libboost-system-dev \
libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
libssl-dev libdb++-dev libminiupnpc-dev
libssl-dev libdb++-dev libminiupnpc-dev libsodium-dev
then execute the following:
......
......@@ -24,6 +24,7 @@ endif
# for boost 1.37, add -mt to the boost libraries
LIBS += \
-Wl,-B$(LMODE) \
-l sodium
-l boost_system$(BOOST_LIB_SUFFIX) \
-l boost_filesystem$(BOOST_LIB_SUFFIX) \
-l boost_program_options$(BOOST_LIB_SUFFIX) \
......
......@@ -28,6 +28,7 @@ LIBPATHS= \
-L"$(DEPSDIR)/openssl-1.0.1f"
LIBS= \
-l sodium
-l boost_system-mt \
-l boost_filesystem-mt \
-l boost_program_options-mt \
......
......@@ -16,6 +16,7 @@ LIBPATHS= \
-L"C:\openssl-1.0.1c-mgw"
LIBS= \
-l sodium
-l boost_system-mgw44-mt-1_53 \
-l boost_filesystem-mgw44-mt-1_53 \
-l boost_program_options-mgw44-mt-1_53 \
......
......@@ -27,6 +27,7 @@ LIBS= -dead_strip
ifdef STATIC
# Build STATIC if you are redistributing the blackcoind binary
LIBS += \
$(DEPSDIR)/lib/libsodium.a \
$(DEPSDIR)/lib/db48/libdb_cxx-4.8.a \
$(DEPSDIR)/lib/libboost_system-mt.a \
$(DEPSDIR)/lib/libboost_filesystem-mt.a \
......@@ -37,6 +38,7 @@ LIBS += \
-lz
else
LIBS += \
-lsodium \
-ldb_cxx-4.8 \
-lboost_system-mt \
-lboost_filesystem-mt \
......
......@@ -25,6 +25,7 @@ endif
# for boost 1.37, add -mt to the boost libraries
LIBS += \
-Wl,-B$(LMODE) \
-l sodium \
-l boost_system$(BOOST_LIB_SUFFIX) \
-l boost_filesystem$(BOOST_LIB_SUFFIX) \
-l boost_program_options$(BOOST_LIB_SUFFIX) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment