Files
ESP8266_RTOS_SDK/components/newlib/Makefile.projbuild
dongheng 3986202ee9 fix(newlib): fix some initialization function is not done when using float-nano newlib and VFS
Using option "NEWLIB_LIBRARY_CUSTOMER" instead of "NEWLIB_ENABLE".
2019-08-28 11:28:58 +08:00

10 lines
245 B
Makefile

ifndef CONFIG_NEWLIB_LIBRARY_CUSTOMER
NEWLIB_FLAGS := -D_CLOCKS_PER_SEC_=CONFIG_FREERTOS_HZ \
-D_POSIX_THREADS=1 \
-D_UNIX98_THREAD_MUTEX_ATTRIBUTES=1
CFLAGS += $(NEWLIB_FLAGS)
CPPFLAGS += $(NEWLIB_FLAGS)
endif