mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-24 08:05:13 +08:00
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()
This commit is contained in:
parent
35cfd4931f
commit
b2a6fca0ee
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ add_library(pm3rrg_rdv4_hardnested STATIC
|
||||||
hardnested/hardnested_bruteforce.c
|
hardnested/hardnested_bruteforce.c
|
||||||
$<TARGET_OBJECTS:pm3rrg_rdv4_hardnested_nosimd>
|
$<TARGET_OBJECTS:pm3rrg_rdv4_hardnested_nosimd>
|
||||||
${SIMD_TARGETS})
|
${SIMD_TARGETS})
|
||||||
|
target_compile_options(pm3rrg_rdv4_hardnested PRIVATE -Wall -Werror -O3)
|
||||||
set_property(TARGET pm3rrg_rdv4_hardnested PROPERTY POSITION_INDEPENDENT_CODE ON)
|
set_property(TARGET pm3rrg_rdv4_hardnested PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
target_include_directories(pm3rrg_rdv4_hardnested PRIVATE
|
target_include_directories(pm3rrg_rdv4_hardnested PRIVATE
|
||||||
../../common
|
../../common
|
||||||
|
|
Loading…
Reference in a new issue