1 # Factorize pthread configurations in single file
6 thread_env = env.Clone()
7 target_os = thread_env.get('TARGET_OS')
9 # Export flags once for all
10 compiler = thread_env.get('CC')
12 thread_env.AppendUnique(CFLAGS = ['-Wall'])
13 if target_os not in ['android','tizenrt']:
14 thread_env.AppendUnique(CFLAGS = ['-pthread'])
15 thread_env.AppendUnique(LIBS = ['pthread'])