endless-sky/endless-sky-0.9.13-remove-additional-ccflags.patch
Gwyn Ciesla 3a6fff5dd8 0.9.13
2021-04-19 09:52:11 -05:00

20 lines
746 B
Diff

--- SConstruct~ 2021-04-19 08:31:12.308058768 -0500
+++ SConstruct 2021-04-19 08:33:05.998937400 -0500
@@ -50,15 +50,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)
# Omit emitting a symbol table when creating/updating static libraries, because Scons
# will run ranlib. If we are using gcc-ranlib, assume support for thin archives as well.