X-Git-Url: http://g0dil.de/git?p=senf.git;a=blobdiff_plain;f=site_scons%2Fsenfutil.py;fp=site_scons%2Fsenfutil.py;h=9ec7dc61b8dcbc5cede3bf120728508e56fb239b;hp=9b4065a7a4d3f5a69c475734f0858c32ab69e01f;hb=278a84e69f5d840d57030bce582413ad5ebcf03e;hpb=63150647e2d71ad619a15d9d82a2b524658d755d 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' ], )