summaryrefslogtreecommitdiff
path: root/components/libc/newlib/SConscript
diff options
context:
space:
mode:
authorRogerz Zhang <[email protected]>2013-04-01 19:06:22 +0800
committerRogerz Zhang <[email protected]>2013-04-01 19:06:22 +0800
commit489b3822f04878737eb0736a123ef7e1fa21e58c (patch)
tree226b28a3a8d67558431f509b8db55e5d26a8773d /components/libc/newlib/SConscript
parent158e9cdf9132e1d51c526f103d31eb07e56adace (diff)
parentd781e564606ab40184612bacf0a0bfa5dc094400 (diff)
Merge remote-tracking branch 'official/master' into auto-ci
Diffstat (limited to 'components/libc/newlib/SConscript')
-rw-r--r--components/libc/newlib/SConscript6
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)