mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'fix/fix_https_server_linux_build_v6.0' into 'release/v6.0'
fix(https_server): fixes failing example build for linux target (v6.0) See merge request espressif/esp-idf!48205
This commit is contained in:
@@ -509,8 +509,11 @@ endif()
|
||||
|
||||
target_link_libraries(${COMPONENT_LIB} ${linkage_type} ${mbedtls_link_targets})
|
||||
|
||||
# Ensure PSA crypto initialization is included in the build
|
||||
if(NOT ${IDF_TARGET} STREQUAL "linux")
|
||||
# Ensure PSA crypto initialization is included in the build.
|
||||
# On macOS (Mach-O), C symbols have a leading underscore prefix.
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin" AND ${IDF_TARGET} STREQUAL "linux")
|
||||
target_link_libraries(${COMPONENT_LIB} ${linkage_type} "-u _mbedtls_psa_crypto_init_include_impl")
|
||||
else()
|
||||
target_link_libraries(${COMPONENT_LIB} ${linkage_type} "-u mbedtls_psa_crypto_init_include_impl")
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user