You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.7 KiB

Index: Modules/Compiler/GNU.cmake
--- Modules/Compiler/GNU.cmake.orig 2016-07-07 16:47:27.000000000 +0200
+++ Modules/Compiler/GNU.cmake 2016-07-08 07:33:43.781042119 +0200
@@ -48,7 +48,7 @@
set(CMAKE_${lang}_FLAGS_INIT "")
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g")
set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
- set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
+ set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
set(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-07-08 07:33:43.781042000 +0200
+++ Source/cmGlobalNinjaGenerator.cxx 2016-07-08 07:34:16.801695721 +0200
@@ -10,6 +10,12 @@
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
+
+#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-07-07 16:47:27.000000000 +0200
+++ Source/kwsys/Encoding.h.in 2016-07-08 07:33:43.781042119 +0200
@@ -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