diff options
| -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  | 
