diff --git a/components/libc/compilers/newlib/SConscript b/components/libc/compilers/newlib/SConscript index 8076a73727..c041a4e944 100644 --- a/components/libc/compilers/newlib/SConscript +++ b/components/libc/compilers/newlib/SConscript @@ -6,11 +6,11 @@ Import('rtconfig') src = [] cwd = GetCurrentDir() group = [] -LIBS = ['m'] # link libm +LIBS = [] CPPPATH = [cwd] if rtconfig.PLATFORM == 'gcc': - LIBS += ['c'] # link libc + LIBS += ['c', 'm'] # link libc and libm src += Glob('*.c') #report newlib version