We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50433a5 + 11d193e commit 9c90f5cCopy full SHA for 9c90f5c
components/libc/compilers/gcc/newlib/SConscript
@@ -4,18 +4,17 @@ Import('rtconfig')
4
src = []
5
cwd = GetCurrentDir()
6
group = []
7
-LIBS = []
8
-CPPDEFINES = []
+LIBS = ['m']
+CPPDEFINES = ['RT_USING_NEWLIB']
9
CPPPATH = [cwd]
10
11
if rtconfig.PLATFORM == 'gcc':
12
if GetDepend('RT_USING_LIBC'):
13
- CPPDEFINES += ['RT_USING_NEWLIB']
14
# link with libc and libm:
15
# libm is a frequently used lib. Newlib is compiled with -ffunction-sections in
16
# recent GCC tool chains. The linker would just link in the functions that have
17
# been referenced. So setting this won't result in bigger text size.
18
- LIBS += ['c', 'm']
+ LIBS += ['c']
19
20
src += Glob('*.c')
21
if GetDepend('RT_USING_MODULE') == False:
0 commit comments