From 8c09909d07527daa69b360a47bd6d36007d463b2 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 21 Mar 2026 10:44:47 +0000 Subject: [PATCH] lib: c: malloc: enable the global heap for the static module --- lib/libc/malloc/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/malloc/CMakeLists.txt b/lib/libc/malloc/CMakeLists.txt index a040db7..a01a54f 100644 --- a/lib/libc/malloc/CMakeLists.txt +++ b/lib/libc/malloc/CMakeLists.txt @@ -30,4 +30,5 @@ sysroot_add_library( HEADER_DIR /usr/include LIB_DIR /usr/lib) +target_compile_definitions(libc-malloc PRIVATE ENABLE_GLOBAL_HEAP=1) target_link_libraries(libc-malloc libc-core libmango)