|
|
@@ -29,7 +29,7 @@ idf_component_register(SRCS "${srcs}"
|
|
|
|
|
|
# Toolchain libraries require code defined in this component
|
|
|
idf_component_get_property(newlib newlib COMPONENT_LIB)
|
|
|
-target_link_libraries(${COMPONENT_LIB} INTERFACE ${LIBC} ${LIBM} gcc "$<TARGET_FILE:${newlib}>")
|
|
|
+target_link_libraries(${COMPONENT_LIB} INTERFACE c m gcc "$<TARGET_FILE:${newlib}>")
|
|
|
|
|
|
set_source_files_properties(heap.c PROPERTIES COMPILE_FLAGS -fno-builtin)
|
|
|
|
|
|
@@ -40,3 +40,7 @@ list(APPEND EXTRA_LINK_FLAGS "-u newlib_include_heap_impl")
|
|
|
list(APPEND EXTRA_LINK_FLAGS "-u newlib_include_syscalls_impl")
|
|
|
list(APPEND EXTRA_LINK_FLAGS "-u newlib_include_pthread_impl")
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "${EXTRA_LINK_FLAGS}")
|
|
|
+
|
|
|
+if(CONFIG_NEWLIB_NANO_FORMAT)
|
|
|
+ target_link_libraries(${COMPONENT_LIB} INTERFACE "--specs=nano.specs")
|
|
|
+endif()
|