Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-rpg/arx-libertatis/files: arx-libertatis-1.0.2-gentoo.patch
Date: Fri, 29 Jun 2012 23:04:04
Message-Id: 20120629214741.27CC12004B@flycatcher.gentoo.org
1 hasufell 12/06/29 21:47:41
2
3 Added: arx-libertatis-1.0.2-gentoo.patch
4 Log:
5 initial import
6
7 (Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 games-rpg/arx-libertatis/files/arx-libertatis-1.0.2-gentoo.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/arx-libertatis/files/arx-libertatis-1.0.2-gentoo.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/arx-libertatis/files/arx-libertatis-1.0.2-gentoo.patch?rev=1.1&content-type=text/plain
14
15 Index: arx-libertatis-1.0.2-gentoo.patch
16 ===================================================================
17 From: Julian Ospald <hasufell@g.o>
18 Date: Wed Jun 27 22:04:32 UTC 2012
19 Subject: build system
20
21 respect flags
22
23 --- CMakeLists.txt
24 +++ CMakeLists.txt
25 @@ -365,21 +365,6 @@
26
27 endif()
28
29 - # Warning level
30 - add_cxxflag("-Wall")
31 - add_cxxflag("-Wextra")
32 - add_cxxflag("-Wformat=2")
33 - add_cxxflag("-Wundef")
34 - add_cxxflag("-Wpointer-arith")
35 - add_cxxflag("-Wcast-qual")
36 - add_cxxflag("-Woverloaded-virtual")
37 - add_cxxflag("-Wlogical-op")
38 -
39 - add_cxxflag("-Wliteral-conversion")
40 - add_cxxflag("-Wshift-overflow")
41 - add_cxxflag("-Woverflow")
42 - add_cxxflag("-Wbool-conversions")
43 -
44 # TODO enable:
45 # add_cxxflag("-Wconversion") # very noisy
46 # add_cxxflag("-Wsign-conversion") # very noisy
47 @@ -391,27 +376,12 @@
48 endif()
49
50 if(CMAKE_BUILD_TYPE STREQUAL "Debug")
51 -
52 - #Debug
53 add_definitions(-D_DEBUG)
54 -
55 - check_compiler_flag(RESULT "-g3")
56 - if(NOT RESULT STREQUAL "")
57 - string(REGEX REPLACE "-g(|[0-9]|gdb)" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
58 - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${RESULT}")
59 - endif()
60 -
61 - check_compiler_flag(RESULT "-O0")
62 - string(REGEX REPLACE "-O[0-9]" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
63 - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${RESULT}")
64 -
65 elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
66 -
67 if((NOT CMAKE_CXX_FLAGS MATCHES "-g(|[0-9]|gdb)")
68 AND (NOT CMAKE_CXX_FLAGS_RELEASE MATCHES "-g(|[0-9]|gdb)"))
69 add_cxxflag("-g2")
70 endif()
71 -
72 endif()
73
74 if(DEBUG_EXTRA)
75 @@ -419,15 +389,7 @@
76 add_cxxflag("-fbounds-checking")
77 add_cxxflag("-fcatch-undefined-behavior")
78 add_cxxflag("-Wstrict-aliasing=1")
79 - else()
80 - # -Wuninitialized causes too many false positives
81 - add_cxxflag("-Wno-uninitialized")
82 - # (clang only) Conflicts with using const variables for configuration.
83 - add_cxxflag("-Wno-constant-logical-operand")
84 endif()
85 -
86 - # Because we are lazy
87 - add_ldflag("-Wl,--as-needed")
88
89 # Xcode does not support -isystem yet
90 if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")