diff options
Diffstat (limited to 'games-strategy/endless-sky/files/endless-sky-0.9.16.1-respect-cflags.patch')
-rw-r--r-- | games-strategy/endless-sky/files/endless-sky-0.9.16.1-respect-cflags.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/games-strategy/endless-sky/files/endless-sky-0.9.16.1-respect-cflags.patch b/games-strategy/endless-sky/files/endless-sky-0.9.16.1-respect-cflags.patch new file mode 100644 index 000000000000..6790f7de647f --- /dev/null +++ b/games-strategy/endless-sky/files/endless-sky-0.9.16.1-respect-cflags.patch @@ -0,0 +1,13 @@ +--- a/SConstruct ++++ b/SConstruct +@@ -53,10 +53,2 @@ + flags = ["-std=c++11", "-Wall", "-Wold-style-cast", "-fno-rtti"] +-if env["mode"] != "debug": +- flags += ["-Werror", "-O3", "-flto"] +- env.Append(LINKFLAGS = ["-O3", "-flto"]) +-if env["mode"] == "debug": +- flags += ["-g"] +-elif env["mode"] == "profile": +- flags += ["-pg"] +- env.Append(LINKFLAGS = ["-pg"]) + env.Append(CCFLAGS = flags) |