diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-03-08 19:17:47 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-03-08 19:17:47 +0100 |
commit | 7cad9bb13f2696dcea90a4caf6ae8f9e9acd6aa4 (patch) | |
tree | 7540a6b52cdf8f12682c8eecd311d5783de700ba | |
parent | 3568ebefab593ba03f3d874d5b2e130aec4f1a89 (diff) |
Compile with multithreaded-only Boost libs (no -mt suffix).
-rw-r--r-- | SConstruct | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |