Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/hiawatha/files: hiawatha-9.5-cflags.patch
Date: Fri, 23 May 2014 17:17:47
Message-Id: 20140523171742.C8C072004E@flycatcher.gentoo.org
1 hasufell 14/05/23 17:17:42
2
3 Added: hiawatha-9.5-cflags.patch
4 Log:
5 respect CFLAGS
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
8
9 Revision Changes Path
10 1.1 www-servers/hiawatha/files/hiawatha-9.5-cflags.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/hiawatha/files/hiawatha-9.5-cflags.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/hiawatha/files/hiawatha-9.5-cflags.patch?rev=1.1&content-type=text/plain
14
15 Index: hiawatha-9.5-cflags.patch
16 ===================================================================
17 From: Julian Ospald <hasufell@g.o>
18 Date: Fri May 23 16:59:33 UTC 2014
19 Subject: make optimization level build-type dependant
20
21 --- hiawatha-9.5/CMakeLists.txt
22 +++ hiawatha-9.5/CMakeLists.txt
23 @@ -2,7 +2,9 @@
24 project(Hiawatha C)
25
26 # Compiler
27 -set(CMAKE_C_FLAGS "-O2 -Wall -Wextra ${CMAKE_C_FLAGS}")
28 +set(CMAKE_C_FLAGS "-Wall -Wextra ${CMAKE_C_FLAGS}")
29 +set(CMAKE_C_FLAGS_RELEASE "-O2")
30 +set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2")
31 set(CMAKE_BUILD_TYPE "RelWithDebInfo")
32
33 # Options