blob: 8bea82409af02f504bb938696dab0000cd565f24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
|