diff options
| author | Bernard Xiong <[email protected]> | 2013-06-23 23:42:27 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-06-23 23:42:27 +0800 |
| commit | 97d1ebf6e83a082bf81e4308cc0d41722d77a2da (patch) | |
| tree | e1408c508134cdf162df8a376a5a86c0c1c96385 | |
| parent | b045f93b47d4da57df034e201fff168219880605 (diff) | |
Update SConscript
| -rw-r--r-- | components/init/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/init/SConscript b/components/init/SConscript index 261065dd52..c3ce75088d 100644 --- a/components/init/SConscript +++ b/components/init/SConscript @@ -3,6 +3,11 @@ from building import * cwd = GetCurrentDir() src = Glob('*.c') CPPPATH = [cwd] -group = DefineGroup('Components', src, depend = ['RT_USING_COMPONENTS_INIT'], CPPPATH = CPPPATH) +if rtconfig.CROSS_TOOL == 'keil': + LINKFLAGS = ' --keep __rt_init* ' +else: + LINKFLAGS = '' + +group = DefineGroup('Components', src, depend = ['RT_USING_COMPONENTS_INIT'], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS) Return('group') |
