Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix link order between ed25519 and needed symbols in interface.cpp
Browse files Browse the repository at this point in the history
clemahieu committed Sep 27, 2023
1 parent d668c88 commit 83a00be
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions nano/crypto_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
add_library(
crypto_lib interface.cpp random_pool.hpp random_pool.cpp
nano_ed25519 interface.cpp)

target_link_libraries(ed25519 nano_ed25519)

add_library(
crypto_lib random_pool.hpp random_pool.cpp
random_pool_shuffle.hpp secure_memory.hpp secure_memory.cpp)

target_link_libraries(crypto_lib blake2 ${CRYPTOPP_LIBRARY})
target_link_libraries(crypto_lib blake2 ed25519 ${CRYPTOPP_LIBRARY})
1 change: 0 additions & 1 deletion nano/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -104,7 +104,6 @@ target_link_libraries(
nano_lib
ipc_flatbuffers_lib
crypto_lib
ed25519
blake2
${CRYPTOPP_LIBRARY}
${CMAKE_DL_LIBS}

0 comments on commit 83a00be

Please sign in to comment.