openbsd-ports/devel/cmake/patches/patch-Modules_Compiler_GNU_cmake
dcoppa d475b0a293 Update to cmake-2.8.9.
"There was no cmake fallout in the bulk on amd64" jasper@
Also tested by Brad with a handful of CMake using ports
2012-08-31 12:28:31 +00:00

15 lines
890 B
Plaintext

$OpenBSD: patch-Modules_Compiler_GNU_cmake,v 1.4 2012/08/31 12:28:31 dcoppa Exp $
--- Modules/Compiler/GNU.cmake.orig Thu Aug 9 20:15:19 2012
+++ Modules/Compiler/GNU.cmake Thu Aug 23 11:25:47 2012
@@ -43,8 +43,8 @@ macro(__compiler_gnu lang)
# Initial configuration flags.
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_MINSIZEREL_INIT "-DNDEBUG")
+ set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-DNDEBUG")
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")