From: tho Date: Thu, 24 Nov 2011 14:52:45 +0000 (+0000) Subject: SConstruct: don't set -ffunction-sections for profile builds X-Git-Url: http://g0dil.de/git?p=senf.git;a=commitdiff_plain;h=63150647e2d71ad619a15d9d82a2b524658d755d SConstruct: don't set -ffunction-sections for profile builds git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1830 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/SConstruct b/SConstruct index f774989..67fdc5d 100644 --- a/SConstruct +++ b/SConstruct @@ -107,7 +107,7 @@ env.Append( '-pipe', '$CXXFLAGS_', '-fno-strict-aliasing', "${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' ], @@ -118,7 +118,7 @@ env.Append( CPPDEFINES_debug = [ '$CPPDEFINES_normal' ], LINKFLAGS = [ '-rdynamic', '$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' ], )