1
0

SConscript 529 B

123456789101112131415161718
  1. from building import *
  2. src = Glob('*.c')
  3. cwd = GetCurrentDir()
  4. CPPPATH = [cwd]
  5. CPPDEFINES = ['RT_USING_NEWLIB']
  6. # link with libc and libm:
  7. # libm is a frequently used lib. Newlib is compiled with -ffunction-sections in
  8. # recent GCC tool chains. The linker would just link in the functions that have
  9. # been referenced. So setting this won't result in bigger text size.
  10. LIBS = ['c', 'm']
  11. group = DefineGroup('newlib', src, depend = ['RT_USING_LIBC'],
  12. CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS)
  13. Return('group')