openbsd-ports/devel/cmake/patches/patch-Modules_Compiler_GNU_cmake
dcoppa 195d9f90cf Update to cmake-2.8.3
OK sthen@, landry@ (who also tested this in a bulk build)
2010-11-15 11:39:08 +00:00

15 lines
890 B
Plaintext

$OpenBSD: patch-Modules_Compiler_GNU_cmake,v 1.2 2010/11/15 11:39:08 dcoppa Exp $
--- Modules/Compiler/GNU.cmake.orig Wed Nov 3 20:58:27 2010
+++ Modules/Compiler/GNU.cmake Wed Nov 10 10:35:50 2010
@@ -27,8 +27,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>")