From 6d14e1390cb3128c66921600aee02a42eaa13702 Mon Sep 17 00:00:00 2001 From: Urey <29945179@qq.com> Date: Wed, 13 Jul 2016 10:49:21 +0800 Subject: [PATCH] Update SConscript --- components/libc/SConscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/libc/SConscript b/components/libc/SConscript index a7913ed74..5b3051576 100644 --- a/components/libc/SConscript +++ b/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')