X-Git-Url: http://g0dil.de/git?p=senf.git;a=blobdiff_plain;f=SConstruct;fp=SConstruct;h=67fdc5dc58f329d67536e207d5eaebb87986b500;hp=f774989faa14ffa29fba82fcbfe851d371478bc3;hb=63150647e2d71ad619a15d9d82a2b524658d755d;hpb=ecbf10f737b7f1305670600ac0f1134625f14f05 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' ], )