import sys Import('env') test_env = env.Clone() test_env.Append(LINKFLAGS = ['-nostdlib']) test_env.Append(CPPFLAGS = ['-fno-builtin', '-nostdinc']) test_env.Append(CPPPATH = ['#build/include']) test_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c']) test_env.Program("threadtest", ["threadtest.c"])