mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 16:14:34 +02:00
esp_tls: Fix unresolved lwip symbol when complex dependency tree
This commit is contained in:
@@ -24,3 +24,8 @@ if(CONFIG_ESP_TLS_USE_SE)
|
|||||||
idf_component_get_property(cryptoauthlib esp-cryptoauthlib COMPONENT_LIB)
|
idf_component_get_property(cryptoauthlib esp-cryptoauthlib COMPONENT_LIB)
|
||||||
target_link_libraries(${COMPONENT_LIB} PUBLIC ${cryptoauthlib})
|
target_link_libraries(${COMPONENT_LIB} PUBLIC ${cryptoauthlib})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Increase link multiplicity to get some lwip symbols correctly resolved by the linker
|
||||||
|
# due to cyclic dependencies present in IDF for lwip/esp_netif/mbedtls
|
||||||
|
idf_component_get_property(lwip lwip COMPONENT_LIB)
|
||||||
|
set_property(TARGET ${lwip} APPEND PROPERTY LINK_INTERFACE_MULTIPLICITY 5)
|
||||||
|
Reference in New Issue
Block a user