https://src.fedoraproject.org/rpms/endless-sky/raw/rawhide/f/endless-sky-0.9.14-remove-additional-ccflags.patch --- a/SConstruct +++ b/SConstruct @@ -46,15 +46,7 @@ # $ CXXFLAGS=-msse3 scons # $ CXXFLAGS=-march=native scons # or modify the `flags` variable: -flags = ["-std=c++11", "-Wall", "-Werror", "-Wold-style-cast"] -if env["mode"] != "debug": - flags += ["-O3", "-flto"] - env.Append(LINKFLAGS = ["-O3", "-flto"]) -if env["mode"] == "debug": - flags += ["-g"] -elif env["mode"] == "profile": - flags += ["-pg"] - env.Append(LINKFLAGS = ["-pg"]) +flags = ["-std=c++11"] env.Append(CCFLAGS = flags) # Always use `ar` to create the symbol table, and don't use ranlib at all, since it fails to preserve