From 7890ee5d45773c2f3d0b273b7f2f900f20b78a55 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sat, 23 Mar 2013 07:51:29 +0800 Subject: [PATCH] add libc in link when enable RT_USING_NEWLIB --- components/libc/newlib/SConscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/libc/newlib/SConscript b/components/libc/newlib/SConscript index a3ddbe9f4..ae8e8756e 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) -- GitLab