summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorJianting (Meco) Man <[email protected]>2021-10-11 15:58:20 -0500
committerGitHub <[email protected]>2021-10-11 15:58:20 -0500
commit1426e57db023b2fd40887c278d4c089678987d4e (patch)
tree58c7e21f1f4dc298c9ad231fa2c86814e1ed4b76 /components/libc
parent2ae8a05963b83c5a0deba6bd9b95f81b93d33092 (diff)
parent277bb736d7d4a7e6c32df107e550c2918bf95726 (diff)
Merge branch 'RT-Thread:master' into hal
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/gcc/newlib/SConscript7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/libc/compilers/gcc/newlib/SConscript b/components/libc/compilers/gcc/newlib/SConscript
index cef546e17c..e0ee482747 100644
--- a/components/libc/compilers/gcc/newlib/SConscript
+++ b/components/libc/compilers/gcc/newlib/SConscript
@@ -4,18 +4,17 @@ Import('rtconfig')
src = []
cwd = GetCurrentDir()
group = []
-LIBS = []
-CPPDEFINES = []
+LIBS = ['m']
+CPPDEFINES = ['RT_USING_NEWLIB']
CPPPATH = [cwd]
if rtconfig.PLATFORM == 'gcc':
if GetDepend('RT_USING_LIBC'):
- CPPDEFINES += ['RT_USING_NEWLIB']
# 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', 'm']
+ LIBS += ['c']
src += Glob('*.c')
if GetDepend('RT_USING_MODULE') == False: