From 0e2ddf50d85c18d7f043c15dbb56cfdbf75984bc Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 4 Sep 2026 22:13:23 +0200 Subject: kstd/libc: add missing undefined function Even though we implement our own `memset` function, we did not define it as undefined. This lead to undefine symbols `-O2` builds, which prefer `memset` in situation in which `-Os` builds do not. --- libs/kstd/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/kstd/CMakeLists.txt b/libs/kstd/CMakeLists.txt index a5b76a62..573fc8f2 100644 --- a/libs/kstd/CMakeLists.txt +++ b/libs/kstd/CMakeLists.txt @@ -58,6 +58,7 @@ if(NOT BUILD_TESTING) "strlen" "memcmp" "memcpy" + "memset" ) list(TRANSFORM KSTD_LIBC_SYMBOLS PREPEND "-Wl,--undefined=") -- cgit v1.2.3