Revert "lib: support linking to POSIX API with 3rd-party libc"

This reverts commit 6342aa3cc0.

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 <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-12-28 14:25:54 +01:00 committed by Chris Friedt
parent e8ba19e0ee
commit 23ad1177a2
1 changed files with 2 additions and 2 deletions

View File

@ -4,10 +4,10 @@
add_compile_options($<TARGET_PROPERTY:compiler,warning_shadow_variables>)
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)