CMakeLists.txt 635 B

12345678910111213141516
  1. idf_component_register(SRCS "pthread.c"
  2. "pthread_cond_var.c"
  3. "pthread_local_storage.c"
  4. INCLUDE_DIRS include)
  5. set(extra_link_flags "-u pthread_include_pthread_impl")
  6. list(APPEND extra_link_flags "-u pthread_include_pthread_cond_impl")
  7. list(APPEND extra_link_flags "-u pthread_include_pthread_local_storage_impl")
  8. if(CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP)
  9. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=vPortCleanUpTCB")
  10. endif()
  11. if(extra_link_flags)
  12. target_link_libraries(${COMPONENT_LIB} INTERFACE "${extra_link_flags}")
  13. endif()