浏览代码

Merge pull request #647 from yygg/master

Update SConscript
Bernard Xiong 8 年之前
父节点
当前提交
c641c8019e
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      components/libc/SConscript

+ 5 - 2
components/libc/SConscript

@@ -17,7 +17,10 @@ else:
     if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim':
         objs = objs + SConscript('minilibc/SConscript')
 
-objs = objs + SConscript('pthreads/SConscript')
-objs = objs + SConscript('libdl/SConscript')
+if GetDepend('RT_USING_LIBC') and GetDepend('RT_USING_PTHREADS'):
+	objs = objs + SConscript('pthreads/SConscript')
+	
+if GetDepend('RT_USING_MODULE') and GetDepend('RT_USING_LIBDL'):
+	objs = objs + SConscript('libdl/SConscript')
 
 Return('objs')