From 201a87e25ccaf27ce79a2a1e297e210ace2effe3 Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Thu, 19 Sep 2024 11:47:14 +0200 Subject: [PATCH] Disable mbedtls platform entropy --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 60240c666b..51d44b6178 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,6 +129,7 @@ endif() if(NOT LIEF_OPT_MBEDTLS_EXTERNAL) set_source_files_properties(${mbedtls_src_files} PROPERTIES GENERATED TRUE) target_sources(LIB_LIEF PRIVATE ${mbedtls_src_files}) + target_compile_definitions(LIB_LIEF PRIVATE -DMBEDTLS_NO_PLATFORM_ENTROPY) target_include_directories(LIB_LIEF SYSTEM PRIVATE ${MBEDTLS_INCLUDE_DIRS} @@ -136,6 +137,7 @@ if(NOT LIEF_OPT_MBEDTLS_EXTERNAL) ) add_dependencies(LIB_LIEF lief_mbed_tls) + target_compile_definitions(LIB_LIEF PUBLIC -DLIEF_EXPORTS) else() find_package(MbedTLS REQUIRED) target_link_libraries(LIB_LIEF PRIVATE