|
|
|
|
Index: Modules/Compiler/GNU.cmake
|
|
|
|
|
--- Modules/Compiler/GNU.cmake.orig 2016-11-12 08:15:17.786081000 +0100
|
|
|
|
|
+++ Modules/Compiler/GNU.cmake 2016-11-12 08:16:16.156090209 +0100
|
|
|
|
|
@@ -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 2016-11-12 08:15:17.786081000 +0100
|
|
|
|
|
+++ Source/cmGlobalNinjaGenerator.cxx 2016-11-12 08:16:31.816062077 +0100
|
|
|
|
|
@@ -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 "cmAlgorithms.h"
|
|
|
|
|
Index: Source/kwsys/Encoding.h.in
|
|
|
|
|
--- Source/kwsys/Encoding.h.in.orig 2016-11-11 15:37:14.000000000 +0100
|
|
|
|
|
+++ Source/kwsys/Encoding.h.in 2016-11-12 08:15:17.786081800 +0100
|
|
|
|
|
@@ -13,6 +13,7 @@
|
|
|
|
|
#define @KWSYS_NAMESPACE@_Encoding_h
|
|
|
|
|
|
|
|
|
|
#include <@KWSYS_NAMESPACE@/Configure.h>
|
|
|
|
|
+#include <stdlib.h>
|
|
|
|
|
#include <wchar.h>
|
|
|
|
|
|
|
|
|
|
/* Redefine all public interface symbol names to be in the proper
|