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 <cfriedt@meta.com>
This commit is contained in:
Christopher Friedt 2023-12-28 01:24:13 -05:00 committed by Chris Friedt
parent 0bf5cbc1c8
commit 6342aa3cc0
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_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)