From 528002dc827e645fec37b3cb29b6556f10dfe5cf Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 16 Mar 2007 10:20:52 +0000 Subject: [PATCH] added missing -pthread for linux platforms --- SConstruct | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index 7717f39de..cdbd8feed 100644 --- a/SConstruct +++ b/SConstruct @@ -191,12 +191,13 @@ if 'python' in env['BINDINGS']: env = conf.Finish() # Setup the c++ args for our own codebase +if env['PLATFORM'] == 'Darwin': pthread = '' +else: pthread = '-pthread' if env['DEBUG']: - env.Append(CXXFLAGS = '-ansi -Wall -ftemplate-depth-100 -O0 -fno-inline -g -DDEBUG -DMAPNIK_DEBUG -D%s -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL' % env['PLATFORM'].upper() ) + env.Append(CXXFLAGS = '-ansi -Wall %s -ftemplate-depth-100 -O0 -fno-inline -g -DDEBUG -DMAPNIK_DEBUG -D%s -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL' % (pthread, env['PLATFORM'].upper())) else: - env.Append(CXXFLAGS = '-ansi -Wall -ftemplate-depth-100 -O3 -finline-functions -Wno-inline -DNDEBUG -D%s -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL' % env['PLATFORM'].upper()) - + env.Append(CXXFLAGS = '-ansi -Wall %s -ftemplate-depth-100 -O3 -finline-functions -Wno-inline -DNDEBUG -D%s -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL' % (pthread,env['PLATFORM'].upper())) # Install some free default fonts