提交 f59547e7 编写于 作者: B Bernard Xiong

[BSP] Fix compiling error because pthreads is depended libc

上级 8a39ed91
...@@ -24,9 +24,7 @@ int rt_application_init() ...@@ -24,9 +24,7 @@ int rt_application_init()
{ {
/* do component initialization */ /* do component initialization */
rt_components_init(); rt_components_init();
#ifdef RT_USING_NEWLIB
libc_system_init(RT_CONSOLE_DEVICE_NAME);
#endif
#ifdef RT_USING_GDB #ifdef RT_USING_GDB
gdb_set_device("uart4"); gdb_set_device("uart4");
gdb_start(); gdb_start();
......
...@@ -122,8 +122,8 @@ ...@@ -122,8 +122,8 @@
// </section> // </section>
// <section name="LIBC" description="C Runtime library setting" default="always" > // <section name="LIBC" description="C Runtime library setting" default="always" >
// <bool name="RT_USING_NEWLIB" description="Using newlib library, only available under GNU GCC" default="true" /> // <bool name="RT_USING_LIBC" description="Using C library" default="true" />
//#define RT_USING_NEWLIB #define RT_USING_LIBC
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" /> // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
#define RT_USING_PTHREADS #define RT_USING_PTHREADS
// </section> // </section>
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
// <section name="LIBC" description="C Runtime library setting" default="always" > // <section name="LIBC" description="C Runtime library setting" default="always" >
// <bool name="RT_USING_LIBC" description="Using C library" default="true" /> // <bool name="RT_USING_LIBC" description="Using C library" default="true" />
// #define RT_USING_LIBC #define RT_USING_LIBC
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" /> // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
#define RT_USING_PTHREADS #define RT_USING_PTHREADS
// </section> // </section>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册