From 6342aa3cc06858575b0d6e69d4a98658ae8a49b0 Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Thu, 28 Dec 2023 01:24:13 -0500 Subject: [PATCH] lib: support linking to POSIX API with 3rd-party libc Previously it was not possible to link to Zephyr's POSIX API under lib/posix when building with `CONFIG_EXTERNAL_LIBC=y`. This small change allows that to work as expected. Signed-off-by: Christopher Friedt --- lib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index c2abdd9559d..5bdb98aad5d 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -4,10 +4,10 @@ add_compile_options($) add_subdirectory(crc) -if(NOT CONFIG_EXTERNAL_LIBC) +if(NOT CONFIG_NATIVE_LIBC) add_subdirectory(libc) -add_subdirectory(posix) endif() +add_subdirectory(posix) add_subdirectory_ifdef(CONFIG_CPP cpp) add_subdirectory(hash) add_subdirectory(heap)