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:
Jiang Jiang Jian
2026-05-12 18:07:17 +08:00
8 changed files with 87 additions and 11 deletions
+5 -2
View File
@@ -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()