|
|
|
|
Index: Modules/Compiler/GNU.cmake
|
|
|
|
|
--- Modules/Compiler/GNU.cmake.orig 2017-04-10 17:23:06.000000000 +0200
|
|
|
|
|
+++ Modules/Compiler/GNU.cmake 2017-04-11 07:44:51.480972000 +0200
|
|
|
|
|
@@ -37,8 +37,8 @@
|
|
|
|
|
# Initial configuration flags.
|
|
|
|
|
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
|
|
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
|
|
|
|
- string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
|
|
|
|
|
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
|
|
|
|
+ string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -O2 -DNDEBUG")
|
|
|
|
|
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
|
|
|
|
|
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
|
|
|
|
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
|
|
|
|
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
|
|
|
|
Index: Source/cmGlobalNinjaGenerator.cxx
|
|
|
|
|
--- Source/cmGlobalNinjaGenerator.cxx.orig 2017-04-10 17:23:07.000000000 +0200
|
|
|
|
|
+++ Source/cmGlobalNinjaGenerator.cxx 2017-04-11 07:44:51.481317000 +0200
|
|
|
|
|
@@ -1,5 +1,11 @@
|
|
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
|
|
|
+
|
|
|
|
|
+#include <stdio.h>
|
|
|
|
|
+#include <stdlib.h>
|
|
|
|
|
+#include <sys/types.h>
|
|
|
|
|
+#include <sys/stat.h>
|
|
|
|
|
+
|
|
|
|
|
#include "cmGlobalNinjaGenerator.h"
|
|
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
Index: Source/kwsys/Encoding.h.in
|
|
|
|
|
--- Source/kwsys/Encoding.h.in.orig 2017-04-11 07:44:51.481489000 +0200
|
|
|
|
|
+++ Source/kwsys/Encoding.h.in 2017-04-11 07:48:03.820448000 +0200
|
|
|
|
|
@@ -5,6 +5,7 @@
|
|
|
|
|
|
|
|
|
|
#include <@KWSYS_NAMESPACE@/Configure.h>
|
|
|
|
|
|
|
|
|
|
+#include <stdlib.h>
|
|
|
|
|
#include <wchar.h>
|
|
|
|
|
|
|
|
|
|
/* Redefine all public interface symbol names to be in the proper
|