From f8ea04f85fe389ae57150b1bb54688ce4322532d Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 23 Jan 2014 13:06:07 -0800 Subject: [PATCH] fix -pthread issue on linux - closes #2132 --- src/build.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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')