From: tho Date: Thu, 24 Nov 2011 15:05:32 +0000 (+0000) Subject: site_scons: don't set -ffunction-sections for profile builds X-Git-Url: http://g0dil.de/git?p=senf.git;a=commitdiff_plain;h=278a84e69f5d840d57030bce582413ad5ebcf03e site_scons: don't set -ffunction-sections for profile builds git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1831 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/site_scons/senfutil.py b/site_scons/senfutil.py index 9b4065a..9ec7dc6 100644 --- a/site_scons/senfutil.py +++ b/site_scons/senfutil.py @@ -226,12 +226,12 @@ def DefaultOptions(env): env.Append( CXXFLAGS = [ '-Wall', '-Woverloaded-virtual', "${profile and '-pg' or None}" ], CXXFLAGS_final = [ '-O3', '-fno-threadsafe-statics', '-fno-stack-protector', - '-ffunction-sections' ], + "${profile and ' ' or '-ffunction-sections'}" ], CXXFLAGS_normal = [ '-O2', '-g' ], CXXFLAGS_debug = [ '-O0', '-g' ], LINKFLAGS = [ "${profile and '-pg' or None}" ], - LINKFLAGS_final = [ '-Wl,--gc-sections' ], + LINKFLAGS_final = [ "${profile and ' ' or '-Wl,--gc-sections'}" ], LINKFLAGS_normal = [ '-Wl,-S' ], LINKFLAGS_debug = [ '-g' ], )