mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
19 lines
673 B
CMake
19 lines
673 B
CMake
idf_component_register(SRCS "pthread.c"
|
|
"pthread_cond_var.c"
|
|
"pthread_local_storage.c"
|
|
INCLUDE_DIRS include)
|
|
|
|
if(GCC_NOT_5_2_0)
|
|
set(extra_link_flags "-u pthread_include_pthread_impl")
|
|
list(APPEND extra_link_flags "-u pthread_include_pthread_cond_impl")
|
|
list(APPEND extra_link_flags "-u pthread_include_pthread_local_storage_impl")
|
|
endif()
|
|
|
|
if(CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP)
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=vPortCleanUpTCB")
|
|
endif()
|
|
|
|
if(extra_link_flags)
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "${extra_link_flags}")
|
|
endif()
|