aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-09-04 22:13:23 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-09-04 22:13:23 +0200
commit0e2ddf50d85c18d7f043c15dbb56cfdbf75984bc (patch)
tree57053fbbff71d42039d2a8f557713c3e0f0cfb7e /libs/kstd
parent29960e6df864310f20b83da596dc0210c4dd0b62 (diff)
downloadkernel-0e2ddf50d85c18d7f043c15dbb56cfdbf75984bc.tar.xz
kernel-0e2ddf50d85c18d7f043c15dbb56cfdbf75984bc.zip
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.
Diffstat (limited to 'libs/kstd')
-rw-r--r--libs/kstd/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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=")