From 4a83b488a893622637706df3214ccc0b6d495cdb Mon Sep 17 00:00:00 2001 From: Shubham Kulkarni Date: Tue, 28 Apr 2020 18:34:51 +0530 Subject: [PATCH] pthread: Use INTERFACE in target_link_libraries for vPortCleanUpTCB wrapper --- components/pthread/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pthread/CMakeLists.txt b/components/pthread/CMakeLists.txt index 653799ad5..215bae54d 100644 --- a/components/pthread/CMakeLists.txt +++ b/components/pthread/CMakeLists.txt @@ -8,7 +8,7 @@ list(APPEND extra_link_flags "-u pthread_include_pthread_cond_impl") list(APPEND extra_link_flags "-u pthread_include_pthread_local_storage_impl") if(CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP) - target_link_libraries(${COMPONENT_LIB} "-Wl,--wrap=vPortCleanUpTCB") + target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=vPortCleanUpTCB") endif() if(extra_link_flags)