Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2018-02-28 05:34:54 +0300
committerJonathan White <support@dmapps.us>2018-02-28 05:34:54 +0300
commite17bee8e3158f60b48b908e996024c0a49012712 (patch)
tree7a92f232086e7cbc0a0df02f1a778668fd27e8d4 /cmake
parent3c274135cec1b5ec5b1723e65582156cb0019d14 (diff)
Properly rename argon2 symbols on Win32 builds
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindArgon2.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/FindArgon2.cmake b/cmake/FindArgon2.cmake
index c0fb53b41..bb2f5811d 100644
--- a/cmake/FindArgon2.cmake
+++ b/cmake/FindArgon2.cmake
@@ -21,7 +21,9 @@ if (MINGW)
message(STATUS "Patching libargon2...\n")
execute_process(COMMAND objcopy
--redefine-sym argon2_hash=libargon2_argon2_hash
+ --redefine-sym _argon2_hash=_libargon2_argon2_hash
--redefine-sym argon2_error_message=libargon2_argon2_error_message
+ --redefine-sym _argon2_error_message=_libargon2_argon2_error_message
${ARGON2_SYS_LIBRARIES} ${CMAKE_BINARY_DIR}/libargon2_patched.a
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
find_library(ARGON2_LIBRARIES libargon2_patched.a PATHS ${CMAKE_BINARY_DIR} NO_DEFAULT_PATH)