summaryrefslogtreecommitdiff
path: root/libc/startup
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-03-16 09:12:36 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-03-16 09:13:18 -0500
commita704c312f11f5b64790b8697b9c31bd75681a144 (patch)
tree01a23a35e9cb251a10257f629623bb5e98e1d1c0 /libc/startup
parent9ed434a96edc388b75624509b5f59d6aa42c953f (diff)
downloadllvm-a704c312f11f5b64790b8697b9c31bd75681a144.tar.gz
[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.
Diffstat (limited to 'libc/startup')
-rw-r--r--libc/startup/linux/riscv64/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/startup/linux/riscv64/CMakeLists.txt b/libc/startup/linux/riscv64/CMakeLists.txt
index 14d6409af6cc..14efe0e58f30 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.