浏览代码

[libc] improve sconscript (#5789)

Man, Jianting (Meco) 3 年之前
父节点
当前提交
084bb1c956
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      components/libc/compilers/newlib/SConscript

+ 2 - 2
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