Skip to content

Commit 6342aa3

Browse files
Christopher Friedtcfriedt
authored andcommitted
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 <[email protected]>
1 parent 0bf5cbc commit 6342aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
add_compile_options($<TARGET_PROPERTY:compiler,warning_shadow_variables>)
55

66
add_subdirectory(crc)
7-
if(NOT CONFIG_EXTERNAL_LIBC)
7+
if(NOT CONFIG_NATIVE_LIBC)
88
add_subdirectory(libc)
9-
add_subdirectory(posix)
109
endif()
10+
add_subdirectory(posix)
1111
add_subdirectory_ifdef(CONFIG_CPP cpp)
1212
add_subdirectory(hash)
1313
add_subdirectory(heap)

0 commit comments

Comments
 (0)