diff --git a/libs/libc/stdio/Make.defs b/libs/libc/stdio/Make.defs index 2ab83833a84..97e91af03f1 100644 --- a/libs/libc/stdio/Make.defs +++ b/libs/libc/stdio/Make.defs @@ -59,6 +59,10 @@ else CSRCS += lib_libvsprintf.c +ifeq ($(CONFIG_LIBC_FLOATINGPOINT),y) +CSRCS += lib_dtoa.c +endif + endif # The remaining sources files depend upon C streams @@ -89,10 +93,6 @@ endif # Other support that depends on specific, configured features. -ifeq ($(CONFIG_LIBC_FLOATINGPOINT),y) -CSRCS += lib_dtoa.c -endif - # Add the stdio directory to the build DEPPATH += --dep-path stdio