From 7cad9bb13f2696dcea90a4caf6ae8f9e9acd6aa4 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 8 Mar 2011 19:17:47 +0100 Subject: Compile with multithreaded-only Boost libs (no -mt suffix). --- SConstruct | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 65311ab..a953bd8 100644 --- a/SConstruct +++ b/SConstruct @@ -6,7 +6,14 @@ if env['PLATFORM'] == 'darwin': env.Append(LIBS = ['boost_system', 'boost_filesystem', 'boost_regex', 'boost_thread', 'boost_program_options', 'mp3lame', 'avformat', 'avcodec', 'soci_core']) else: conf = Configure(env) - for lib in ['boost_system-mt', 'boost_filesystem-mt', 'boost_regex-mt','boost_thread-mt', 'boost_program_options-mt', 'mp3lame']: + boost_libs = ['boost_system', 'boost_filesystem', 'boost_regex','boost_thread', 'boost_program_options'] + if not all([conf.CheckLib(x + '-mt') for x in boost_libs]): + print('Trying Boost libraries without -mt suffix...') + if all([conf.CheckLib(x) for x in boost_libs]): + print('Boost libraries without -mt suffix found, please make sure these are multithread aware.') + else: + Exit(1) + for lib in ['mp3lame']: if not conf.CheckLib(lib): Exit(1) # scons' CheckLib doesn't seem to find soci_core -- cgit v1.2.3