diff options
| author | Bernard Xiong <[email protected]> | 2013-03-23 07:51:29 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-03-23 07:51:29 +0800 |
| commit | 7890ee5d45773c2f3d0b273b7f2f900f20b78a55 (patch) | |
| tree | b33fb59d0435539b4ea6f8e031b373ee9f230a87 /components | |
| parent | e4e938dc8e7f09db1ba178363aebcbdf75fab548 (diff) | |
add libc in link when enable RT_USING_NEWLIB
Diffstat (limited to 'components')
| -rw-r--r-- | components/libc/newlib/SConscript | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/libc/newlib/SConscript b/components/libc/newlib/SConscript index a3ddbe9f4d..ae8e8756e1 100644 --- a/components/libc/newlib/SConscript +++ b/components/libc/newlib/SConscript @@ -8,14 +8,14 @@ if GetDepend('RT_USING_NEWLIB') and rtconfig.CROSS_TOOL != 'gcc': exit(0) cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] -# link with libm in default. +# link with libc and libm: # libm is a frequently used lib. Newlib is compiled with -ffunction-sections in # recent GCC tool chains. The linker would just link in the functions that have # been referenced. So setting this won't result in bigger text size. -LIBS = ['m'] +LIBS = ['c', 'm'] group = DefineGroup('newlib', src, depend = ['RT_USING_NEWLIB'], CPPPATH = CPPPATH, LIBS = LIBS) |
