diff --git a/libc/loader/linux/aarch64/CMakeLists.txt b/libc/loader/linux/aarch64/CMakeLists.txt --- a/libc/loader/linux/aarch64/CMakeLists.txt +++ b/libc/loader/linux/aarch64/CMakeLists.txt @@ -4,8 +4,10 @@ start.cpp DEPENDS libc.config.linux.app_h + libc.include.errno libc.include.sys_syscall libc.src.__support.OSUtil.osutil + libc.src.errno.errno COMPILE_OPTIONS -fno-omit-frame-pointer -ffreestanding # To avoid compiler warnings about calling the main function. diff --git a/libc/loader/linux/x86_64/CMakeLists.txt b/libc/loader/linux/x86_64/CMakeLists.txt --- a/libc/loader/linux/x86_64/CMakeLists.txt +++ b/libc/loader/linux/x86_64/CMakeLists.txt @@ -4,9 +4,11 @@ start.cpp DEPENDS libc.config.linux.app_h + libc.include.errno libc.include.sys_mman libc.include.sys_syscall libc.src.__support.OSUtil.osutil + libc.src.errno.errno libc.src.string.memory_utils.memcpy_implementation COMPILE_OPTIONS -fno-omit-frame-pointer