From a704c312f11f5b64790b8697b9c31bd75681a144 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 16 Mar 2023 09:12:36 -0500 Subject: [PATCH] [libc] Add missing dependencies to RISC-V startup implementation Summary: Just like the last patch, the threads and envrion dependencies were missing. This lead to linker failures when building the tests. --- libc/startup/linux/riscv64/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/startup/linux/riscv64/CMakeLists.txt b/libc/startup/linux/riscv64/CMakeLists.txt index 14d6409af6cc1..14efe0e58f302 100644 --- a/libc/startup/linux/riscv64/CMakeLists.txt +++ b/libc/startup/linux/riscv64/CMakeLists.txt @@ -6,10 +6,12 @@ add_startup_object( libc.config.linux.app_h libc.include.sys_mman libc.include.sys_syscall + libc.src.__support.threads.thread libc.src.__support.OSUtil.osutil libc.src.stdlib.exit libc.src.stdlib.atexit libc.src.string.memory_utils.memcpy_implementation + libc.src.unistd.environ COMPILE_OPTIONS -fno-omit-frame-pointer -ffreestanding # To avoid compiler warnings about calling the main function.