13 lines
374 B
CMake
13 lines
374 B
CMake
|
zephyr_library()
|
||
|
zephyr_library_sources(libc-hooks.c)
|
||
|
|
||
|
zephyr_include_directories(${LIBC_INCLUDE_DIR})
|
||
|
zephyr_link_libraries(
|
||
|
m
|
||
|
c
|
||
|
-L${LIBC_LIBRARY_DIR}
|
||
|
$<$<BOOL:${CONFIG_NEWLIB_LIBC_FLOAT_PRINTF}>:-u_printf_float>
|
||
|
$<$<BOOL:${CONFIG_NEWLIB_LIBC_FLOAT_SCANF}>:-u_scanf_float>
|
||
|
gcc # Lib C depends on libgcc. e.g. libc.a(lib_a-fvwrite.o) references __aeabi_idiv
|
||
|
)
|