4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 20:13:40 +08:00

[libc] improve sconscript (#5789)

This commit is contained in:
Man, Jianting (Meco) 2022-04-08 11:15:27 -04:00 committed by GitHub
parent 1aab3607af
commit 084bb1c956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,11 @@ Import('rtconfig')
src = [] src = []
cwd = GetCurrentDir() cwd = GetCurrentDir()
group = [] group = []
LIBS = ['m'] # link libm LIBS = []
CPPPATH = [cwd] CPPPATH = [cwd]
if rtconfig.PLATFORM == 'gcc': if rtconfig.PLATFORM == 'gcc':
LIBS += ['c'] # link libc LIBS += ['c', 'm'] # link libc and libm
src += Glob('*.c') src += Glob('*.c')
#report newlib version #report newlib version