diff options
| author | bernard <[email protected]> | 2017-10-13 12:44:54 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-10-13 12:44:54 +0800 |
| commit | 8bdf993bfc38f9b652a7af60cb071c708ad7dea6 (patch) | |
| tree | e9a17b508d1e348b4b5cfa0b18016a29514e3fc1 /components/libc/libdl | |
| parent | 444915d1eac7eb1059a1a5b02eb8c0393ce4a79c (diff) | |
[libc] Build correct SConscript file.
Diffstat (limited to 'components/libc/libdl')
| -rw-r--r-- | components/libc/libdl/SConscript | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/components/libc/libdl/SConscript b/components/libc/libdl/SConscript index f7f588858a..493dd4b256 100644 --- a/components/libc/libdl/SConscript +++ b/components/libc/libdl/SConscript @@ -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') |
