From: tho Date: Mon, 7 Nov 2011 11:46:44 +0000 (+0000) Subject: added additional compile options for final build to remove multithreading capabilities X-Git-Url: http://g0dil.de/git?p=senf.git;a=commitdiff_plain;h=6df7613bc4c5a8c27a6af11450d2cb8fbb6ea3a6 added additional compile options for final build to remove multithreading capabilities git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1823 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/SConstruct b/SConstruct index 03965b5..be18565 100644 --- a/SConstruct +++ b/SConstruct @@ -106,12 +106,12 @@ env.Append( CXXFLAGS = [ '-Wall', '-Woverloaded-virtual', '-Wno-long-long', '$INLINE_OPTS', '-pipe', '$CXXFLAGS_', '-fno-strict-aliasing', "${profile and '-pg' or None}" ], - CXXFLAGS_final = [ '-O3' ], + CXXFLAGS_final = [ '-O3', '-fno-threadsafe-statics' ], CXXFLAGS_normal = [ '-O2', '-g' ], CXXFLAGS_debug = [ '-O0', '-g' ], CPPDEFINES = [ '$expandLogOption', '$CPPDEFINES_' ], - CPPDEFINES_final = [ 'SENF_PPI_NOTRACE', 'BOOST_NO_MT', 'NDEBUG', 'BOOST_DISABLE_ASSERTS' ], + CPPDEFINES_final = [ 'SENF_PPI_NOTRACE', 'BOOST_NO_MT', 'NDEBUG', 'BOOST_DISABLE_ASSERTS', 'BOOST_DISABLE_THREADS' ], CPPDEFINES_normal = [ 'SENF_DEBUG' ], CPPDEFINES_debug = [ '$CPPDEFINES_normal' ], diff --git a/site_scons/senfutil.py b/site_scons/senfutil.py index 67ad95c..0d7c30d 100644 --- a/site_scons/senfutil.py +++ b/site_scons/senfutil.py @@ -225,7 +225,7 @@ def DefaultOptions(env): # Set nice default options env.Append( CXXFLAGS = [ '-Wall', '-Woverloaded-virtual', "${profile and '-pg' or None}" ], - CXXFLAGS_final = [ '-O3' ], + CXXFLAGS_final = [ '-O3', '-fno-threadsafe-statics' ], CXXFLAGS_normal = [ '-O2', '-g' ], CXXFLAGS_debug = [ '-O0', '-g' ],