1 |
hasufell 12/06/29 21:26:51 |
2 |
|
3 |
Added: innoextract-1.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 app-arch/innoextract/files/innoextract-1.2-gentoo.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/innoextract/files/innoextract-1.2-gentoo.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/innoextract/files/innoextract-1.2-gentoo.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: innoextract-1.2-gentoo.patch |
16 |
=================================================================== |
17 |
From: Julian Ospald <hasufell@g.o> |
18 |
Date: Wed Jun 27 23:41:12 UTC 2012 |
19 |
Subject: build system |
20 |
|
21 |
respect flags |
22 |
|
23 |
--- CMakeLists.txt |
24 |
+++ CMakeLists.txt |
25 |
@@ -54,40 +54,13 @@ |
26 |
link_directories("${Boost_LIBRARY_DIRS}") |
27 |
include_directories(SYSTEM "${Boost_INCLUDE_DIR}") |
28 |
|
29 |
-add_cxxflag("-Wall") |
30 |
-add_cxxflag("-Wextra") |
31 |
-add_cxxflag("-Wformat=2") |
32 |
-add_cxxflag("-Wundef") |
33 |
-add_cxxflag("-Wpointer-arith") |
34 |
-add_cxxflag("-Wcast-qual") |
35 |
-add_cxxflag("-Woverloaded-virtual") |
36 |
-add_cxxflag("-Wlogical-op") |
37 |
-add_cxxflag("-Wliteral-conversion") |
38 |
-add_cxxflag("-Wshift-overflow") |
39 |
-add_cxxflag("-Woverflow") |
40 |
-add_cxxflag("-Wbool-conversions") |
41 |
-add_cxxflag("-Wconversion") |
42 |
-add_cxxflag("-Wsign-conversion") |
43 |
-add_cxxflag("-Wmissing-declarations") |
44 |
-add_cxxflag("-Wredundant-decls") |
45 |
- |
46 |
if(DEBUG_EXTRA) |
47 |
add_cxxflag("-ftrapv") # to add checks for (undefined) signed integer overflow |
48 |
add_cxxflag("-fbounds-checking") |
49 |
add_cxxflag("-fcatch-undefined-behavior") |
50 |
add_cxxflag("-Wstrict-aliasing=1") |
51 |
-else() |
52 |
- # -Wuninitialized causes too many false positives - thanks very much, gcc |
53 |
- add_cxxflag("-Wno-uninitialized") |
54 |
- # (clang only) Conflicts with using const variables for configuration. |
55 |
- add_cxxflag("-Wno-constant-logical-operand") |
56 |
- add_cxxflag("-Wno-unneeded-internal-declaration") |
57 |
- add_cxxflag("-Wno-unused-function") |
58 |
endif() |
59 |
|
60 |
-# Because i'm lazy |
61 |
-add_cxxflag("-Wl,--as-needed") |
62 |
- |
63 |
check_symbol_exists(isatty "unistd.h" HAVE_ISATTY) |
64 |
check_symbol_exists(ioctl "sys/ioctl.h" HAVE_IOCTL) |