[IOT-2324]warning fix 1
[platform/upstream/iotivity.git] / build_common / thread.scons
1 # Factorize pthread configurations in single file
2 import os
3
4 Import('thread_env')
5
6 target_os = thread_env.get('TARGET_OS')
7
8 # Export flags once for all
9 compiler = thread_env.get('CC')
10 if 'gcc' in compiler:
11     thread_env.AppendUnique(CFLAGS = ['-Wall'])
12     if target_os not in ['android']:
13         thread_env.AppendUnique(CFLAGS = ['-pthread'])
14         thread_env.AppendUnique(LIBS = ['pthread'])