summaryrefslogtreecommitdiff
path: root/components/libc/compilers/gcc/newlib/SConscript
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-10-28 02:48:51 -0400
committerMeco Man <[email protected]>2021-10-28 02:54:45 -0400
commit7b43cf9793025b0bbb9b2c3bbeedb788edb04f7c (patch)
tree8f2b2eddd393484a6e4f95b2330147414f9d2b9a /components/libc/compilers/gcc/newlib/SConscript
parentda1cc99fe2b1c07698e24556ef574c5ded521771 (diff)
[libc][posix] move libc.c/.h to posix folder
Diffstat (limited to 'components/libc/compilers/gcc/newlib/SConscript')
-rw-r--r--components/libc/compilers/gcc/newlib/SConscript11
1 files changed, 2 insertions, 9 deletions
diff --git a/components/libc/compilers/gcc/newlib/SConscript b/components/libc/compilers/gcc/newlib/SConscript
index e0ee482747..ae50098dec 100644
--- a/components/libc/compilers/gcc/newlib/SConscript
+++ b/components/libc/compilers/gcc/newlib/SConscript
@@ -4,21 +4,14 @@ Import('rtconfig')
src = []
cwd = GetCurrentDir()
group = []
-LIBS = ['m']
+LIBS = ['m'] # link libm
CPPDEFINES = ['RT_USING_NEWLIB']
CPPPATH = [cwd]
if rtconfig.PLATFORM == 'gcc':
if GetDepend('RT_USING_LIBC'):
- # 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 += ['c']
-
+ LIBS += ['c'] # link libc
src += Glob('*.c')
- if GetDepend('RT_USING_MODULE') == False:
- SrcRemove(src, ['libc_syms.c'])
else:
src += ['syscalls.c']