[libc-commits] [libc] 501a872 - [libc] Add missing environ dependency to AArch64 startup implementation
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Thu Mar 16 06:07:02 PDT 2023
Author: Joseph Huber
Date: 2023-03-16T08:06:14-05:00
New Revision: 501a8724bd994ee4ded942aff8420287c41a0774
URL: https://github.com/llvm/llvm-project/commit/501a8724bd994ee4ded942aff8420287c41a0774
DIFF: https://github.com/llvm/llvm-project/commit/501a8724bd994ee4ded942aff8420287c41a0774.diff
LOG: [libc] Add missing environ dependency to AArch64 startup implementation
Summary:
Just like the last patch, this dependency was missing. This lead to
linker failures when building the tests.
Added:
Modified:
libc/startup/linux/aarch64/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/startup/linux/aarch64/CMakeLists.txt b/libc/startup/linux/aarch64/CMakeLists.txt
index 49f7f857c04a..14efe0e58f30 100644
--- a/libc/startup/linux/aarch64/CMakeLists.txt
+++ b/libc/startup/linux/aarch64/CMakeLists.txt
@@ -11,6 +11,7 @@ add_startup_object(
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.
More information about the libc-commits
mailing list