widelands/widelands.flagfix.patch

49 lines
1.7 KiB
Diff

diff -up ./build/scons-tools/scons_configure.py.flagfix ./build/scons-tools/scons_configure.py
--- ./build/scons-tools/scons_configure.py.flagfix 2008-04-06 20:39:50.000000000 +0200
+++ ./build/scons-tools/scons_configure.py 2008-04-06 20:40:32.000000000 +0200
@@ -440,35 +440,7 @@ def do_configure_compiler_warnings(confi
#conf.CheckCompilerFlag('-Werror', env)
def do_configure_compiler_features(config_h_file, conf, env):
- conf.CheckCompilerFlag('-fstack-protector-all', env)
- conf.CheckCompilerFlag('-fbounds-check', env)
- conf.CheckCompilerFlag('-pipe', 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)
-
- if env.debug:
- conf.CheckCompilerFlag('-g', env)
- conf.CheckCompilerFlag('-fmessage-length=0', env)
-
-def do_configure_linker_features(config_h_file, conf, env):
- if env.profile:
- conf.CheckLinkerFlag('-pg', env)
- conf.CheckLinkerFlag('-fprofile-arcs', env)
-
- if env.strip:
- conf.CheckLinkerFlag('-s', env)
+ conf.CheckCompilerFlag('flagi', env)
def do_configure(conf, env):
config_h_file=write_configh_header()
@@ -480,7 +452,6 @@ def do_configure(conf, env):
do_configure_compiler_warnings(config_h_file, conf, env)
do_configure_compiler_features(config_h_file, conf, env)
- do_configure_linker_features(config_h_file, conf, env)
write_configh(config_h_file, env)
write_configh_footer(config_h_file)