From b2a6fca0ee1d26ba68a32bd2b8017d7c252837a6 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 18 Jun 2020 19:27:33 +0200 Subject: [PATCH] Fix bug when cmake android and CMAKE_BUILD_TYPE=Release, see comments: The presence of "filter" from crypto1.c as an exported function depends on the chosen compilation optimization level. So if the common/crapto1/ and the code using it (here hardnested) are not using the same level, there will be a mismatch, in this case hardnested_bruteforce.c expecting crypto1.c to provide filter() --- client/deps/hardnested.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/client/deps/hardnested.cmake b/client/deps/hardnested.cmake index 9efff1445..6ec4f0297 100644 --- a/client/deps/hardnested.cmake +++ b/client/deps/hardnested.cmake @@ -107,6 +107,7 @@ add_library(pm3rrg_rdv4_hardnested STATIC hardnested/hardnested_bruteforce.c $ ${SIMD_TARGETS}) +target_compile_options(pm3rrg_rdv4_hardnested PRIVATE -Wall -Werror -O3) set_property(TARGET pm3rrg_rdv4_hardnested PROPERTY POSITION_INDEPENDENT_CODE ON) target_include_directories(pm3rrg_rdv4_hardnested PRIVATE ../../common