[libc] Build correct SConscript file.

This commit is contained in:
bernard
2017-10-13 12:44:54 +08:00
parent 444915d1ea
commit 8bdf993bfc
9 changed files with 74 additions and 41 deletions

View File

@@ -1,9 +1,14 @@
from building import *
Import('rtconfig')
src = Glob('*.c')
src = Glob('*.c') + Glob('*.cpp')
cwd = GetCurrentDir()
group = []
CPPPATH = [cwd]
group = DefineGroup('libdl', src, depend = ['RT_USING_MODULE', 'RT_USING_LIBDL'], CPPPATH = CPPPATH)
if rtconfig.PLATFORM == 'gcc':
group = DefineGroup('libc', src,
depend = ['RT_USING_MODULE', 'RT_USING_LIBDL'],
CPPPATH = CPPPATH)
Return('group')