From 68282cf80b0803e924ecb3902d22d8c58bf68af5 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 1 May 2018 16:54:27 +1000 Subject: [PATCH] heap/cmake: Fix linking error when heap tracing is enabled --- components/heap/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/heap/CMakeLists.txt b/components/heap/CMakeLists.txt index b7dd5d9ac..9c4ccf16d 100644 --- a/components/heap/CMakeLists.txt +++ b/components/heap/CMakeLists.txt @@ -12,7 +12,15 @@ register_component() if(CONFIG_HEAP_TRACING) set(WRAP_FUNCTIONS - calloc malloc free realloc heap_caps_malloc heap_caps_free heap_caps_realloc) + calloc + malloc + free + realloc + heap_caps_malloc + heap_caps_free + heap_caps_realloc + heap_caps_malloc_default + heap_caps_realloc_default) foreach(wrap ${WRAP_FUNCTIONS}) target_link_libraries(heap "-Wl,--wrap=${wrap}")