1 |
dirtyepic 13/07/01 06:19:14 |
2 |
|
3 |
Modified: README.history |
4 |
Added: 17_all_libitm-Werror.patch |
5 |
Log: |
6 |
Add --enable-werror for bug #475350. |
7 |
|
8 |
Revision Changes Path |
9 |
1.5 src/patchsets/gcc/4.7.3/gentoo/README.history |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?rev=1.5&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?rev=1.5&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?r1=1.4&r2=1.5 |
14 |
|
15 |
Index: README.history |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history,v |
18 |
retrieving revision 1.4 |
19 |
retrieving revision 1.5 |
20 |
diff -u -r1.4 -r1.5 |
21 |
--- README.history 15 May 2013 00:28:07 -0000 1.4 |
22 |
+++ README.history 1 Jul 2013 06:19:14 -0000 1.5 |
23 |
@@ -1,3 +1,6 @@ |
24 |
+1.1 (pending) |
25 |
+ + 17_all_libitm-Werror.patch |
26 |
+ |
27 |
1.0 14 May 2013 |
28 |
+ 10_all_default-fortify-source.patch |
29 |
+ 11_all_default-warn-format-security.patch |
30 |
|
31 |
|
32 |
|
33 |
1.1 src/patchsets/gcc/4.7.3/gentoo/17_all_libitm-Werror.patch |
34 |
|
35 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/17_all_libitm-Werror.patch?rev=1.1&view=markup |
36 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/17_all_libitm-Werror.patch?rev=1.1&content-type=text/plain |
37 |
|
38 |
Index: 17_all_libitm-Werror.patch |
39 |
=================================================================== |
40 |
Add --enable-werror. |
41 |
|
42 |
https://bugs.gentoo.org/475350 |
43 |
|
44 |
|
45 |
2013-06-30 Ryan Hill <dirtyepic@g.o> |
46 |
|
47 |
* configure.ac: Add --enable-werror. |
48 |
(XCFLAGS): Use it. |
49 |
* configure: Regenerate. |
50 |
|
51 |
--- a/libitm/configure |
52 |
+++ b/libitm/configure |
53 |
@@ -775,6 +775,7 @@ enable_maintainer_mode |
54 |
enable_linux_futex |
55 |
enable_tls |
56 |
enable_symvers |
57 |
+enable_werror |
58 |
' |
59 |
ac_precious_vars='build_alias |
60 |
host_alias |
61 |
@@ -1423,6 +1424,7 @@ Optional Features: |
62 |
--enable-tls Use thread-local storage [default=yes] |
63 |
--enable-symvers=STYLE enables symbol versioning of the shared library |
64 |
[default=yes] |
65 |
+ --enable-werror turns on -Werror [default=yes] |
66 |
|
67 |
Optional Packages: |
68 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
69 |
@@ -17491,9 +17493,18 @@ $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
70 |
fi |
71 |
rm -f confcache |
72 |
|
73 |
-# Add -Wall -Werror if we are using GCC. |
74 |
+# Check whether --enable-werror was given. |
75 |
+if test "${enable_werror+set}" = set; then : |
76 |
+ enableval=$enable_werror; |
77 |
+fi |
78 |
+ |
79 |
+# Add -Wall if we are using GCC. |
80 |
if test "x$GCC" = "xyes"; then |
81 |
- XCFLAGS="$XCFLAGS -Wall -Werror" |
82 |
+ XCFLAGS="$XCFLAGS -Wall" |
83 |
+ # Add -Werror if requested. |
84 |
+ if test "x$enable_werror" != "xno"; then |
85 |
+ XCFLAGS="$XCFLAGS -Werror" |
86 |
+ fi |
87 |
fi |
88 |
|
89 |
XCFLAGS="$XCFLAGS $XPCFLAGS" |
90 |
--- a/libitm/configure.ac |
91 |
+++ b/libitm/configure.ac |
92 |
@@ -252,9 +252,15 @@ GCC_CHECK_ELF_STYLE_WEAKREF |
93 |
CFLAGS="$save_CFLAGS" |
94 |
AC_CACHE_SAVE |
95 |
|
96 |
-# Add -Wall -Werror if we are using GCC. |
97 |
+AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror], |
98 |
+ [turns on -Werror @<:@default=yes@:>@])]) |
99 |
+# Add -Wall if we are using GCC. |
100 |
if test "x$GCC" = "xyes"; then |
101 |
- XCFLAGS="$XCFLAGS -Wall -Werror" |
102 |
+ XCFLAGS="$XCFLAGS -Wall" |
103 |
+ # Add -Werror if requested. |
104 |
+ if test "x$enable_werror" != "xno"; then |
105 |
+ XCFLAGS="$XCFLAGS -Werror" |
106 |
+ fi |
107 |
fi |
108 |
|
109 |
XCFLAGS="$XCFLAGS $XPCFLAGS" |