diff --git a/src/build.py b/src/build.py index bd917b258..d6aa4189f 100644 --- a/src/build.py +++ b/src/build.py @@ -102,8 +102,11 @@ lib_env['LIBS'].append(env['ICU_LIB_NAME']) lib_env['LIBS'].append('freetype') -if env['RUNTIME_LINK'] == 'static' and 'icuuc' in env['ICU_LIB_NAME']: - lib_env['LIBS'].append('icudata') +if env['RUNTIME_LINK'] == 'static': + if env['PLATFORM'] == 'Linux': + lib_env['LINKFLAGS'].append('-pthread') + if 'icuuc' in env['ICU_LIB_NAME']: + lib_env['LIBS'].append('icudata') if env['RUNTIME_LINK'] != 'static': lib_env['LIBS'].insert(0, 'agg')