From 23ad1177a207089767df1eea981367f756c623f3 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Thu, 28 Dec 2023 14:25:54 +0100 Subject: [PATCH] Revert "lib: support linking to POSIX API with 3rd-party libc" This reverts commit 6342aa3cc06858575b0d6e69d4a98658ae8a49b0. This commit should never have been merged. Apart from the fact that this change was rejected in previous review, this change is wrong, for 2 reasons: 1. The POSIX_API (POSIX compatibility shim) cannot be built if the host libC is used. 2. The Zephyr libC CMake files were guarded so they would not be dragged when CONFIG_EXTERNAL_LIBC was selected. Signed-off-by: Alberto Escolar Piedras --- lib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 5bdb98aad5d..c2abdd9559d 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -4,10 +4,10 @@ add_compile_options($) add_subdirectory(crc) -if(NOT CONFIG_NATIVE_LIBC) +if(NOT CONFIG_EXTERNAL_LIBC) add_subdirectory(libc) -endif() add_subdirectory(posix) +endif() add_subdirectory_ifdef(CONFIG_CPP cpp) add_subdirectory(hash) add_subdirectory(heap)