diff -up ./build/scons-tools/scons_configure.py.flagfix ./build/scons-tools/scons_configure.py --- ./build/scons-tools/scons_configure.py.flagfix 2007-06-03 17:17:45.000000000 +0200 +++ ./build/scons-tools/scons_configure.py 2007-09-08 00:03:37.000000000 +0200 @@ -263,58 +263,4 @@ def do_configure(config_h_file, conf, en print 'Could not find efence, so doing a debug-efence build is impossible !' env.Exit(1) - conf.CheckCompilerFlag('-fstack-protector-all', env) - conf.CheckCompilerFlag('-fbounds-check', env) - conf.CheckCompilerFlag('-pipe', env) - conf.CheckCompilerFlag('-Wall', env) - conf.CheckCompilerFlag('-Wcast-align', env) - conf.CheckCompilerFlag('-Wcast-qual', env) - conf.CheckCompilerFlag('-Wconversion', env) - conf.CheckCompilerFlag('-Wdisabled-optimization', env) - conf.CheckCompilerFlag('-Wextra', env) - #conf.CheckCompilerFlag('-Wfloat-equal', env) - #conf.CheckCompilerFlag('-Wformat=2', env) - conf.CheckCompilerFlag('-Winline', env) - conf.CheckCompilerFlag('-Winvalid-pch', env) - conf.CheckCompilerFlag('-Wmissing-format-attribute', env) - conf.CheckCompilerFlag('-Wmissing-include-dirs', env) - conf.CheckCompilerFlag('-Wmissing-noreturn', env) - conf.CheckCompilerFlag('-Wno-comment', env) - conf.CheckCompilerFlag('-Wnormalized=nfc', env) - #conf.CheckCompilerFlag('-Wold-style-cast', env) - #conf.CheckCompilerFlag('-Wpadded', env) - conf.CheckCompilerFlag('-Wpointer-arith', env) - conf.CheckCompilerFlag('-Wunsafe-loop-optimizations', env) - conf.CheckCompilerFlag('-Wshadow', env) - conf.CheckCompilerFlag('-Wstack-protector', env) - conf.CheckCompilerFlag('-Wstrict-aliasing=2', env) - #conf.CheckCompilerFlag('-Wunreachable-code', env) - conf.CheckCompilerFlag('-Wwrite-strings', env) - - #conf.CheckCompilerFlag('-Wno-deprecated-declarations', env) - #conf.CheckCompilerFlag('-Wno-unused-variable', env) - #conf.CheckCompilerFlag('-Wno-unused-parameter', env) - #conf.CheckCompilerFlag('-Werror', env) - - if env.optimize: - # !!!! -fomit-frame-pointer breaks execeptions !!!! - conf.CheckCompilerFlag('-fexpensive-optimizations', env) - conf.CheckCompilerFlag('-finline-functions', env) - conf.CheckCompilerFlag('-ffast-math', env) - conf.CheckCompilerFlag('-funroll-loops', env) - conf.CheckCompilerFlag('-O3', env) - else: - conf.CheckCompilerFlag('-O0', env) - - if env.profile: - conf.CheckCompilerFlag('-pg', env) - conf.CheckCompilerFlag('-fprofile-arcs', env) - conf.CheckLinkerFlag('-pg', env) - conf.CheckLinkerFlag('-fprofile-arcs', env) - - if env.debug: - conf.CheckCompilerFlag('-g', env) - conf.CheckCompilerFlag('-fmessage-length=0', env) - - if env.strip: - conf.CheckLinkerFlag('-s', env) + conf.CheckCompilerFlag('flagi', env)