* [gentoo-commits] gentoo commit in src/patchsets/gcc/4.7.3/gentoo: 17_all_libitm-Werror.patch README.history
@ 2013-07-01 6:19 Ryan Hill (dirtyepic)
0 siblings, 0 replies; only message in thread
From: Ryan Hill (dirtyepic) @ 2013-07-01 6:19 UTC (permalink / raw
To: gentoo-commits
dirtyepic 13/07/01 06:19:14
Modified: README.history
Added: 17_all_libitm-Werror.patch
Log:
Add --enable-werror for bug #475350.
Revision Changes Path
1.5 src/patchsets/gcc/4.7.3/gentoo/README.history
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?r1=1.4&r2=1.5
Index: README.history
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- README.history 15 May 2013 00:28:07 -0000 1.4
+++ README.history 1 Jul 2013 06:19:14 -0000 1.5
@@ -1,3 +1,6 @@
+1.1 (pending)
+ + 17_all_libitm-Werror.patch
+
1.0 14 May 2013
+ 10_all_default-fortify-source.patch
+ 11_all_default-warn-format-security.patch
1.1 src/patchsets/gcc/4.7.3/gentoo/17_all_libitm-Werror.patch
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
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
Index: 17_all_libitm-Werror.patch
===================================================================
Add --enable-werror.
https://bugs.gentoo.org/475350
2013-06-30 Ryan Hill <dirtyepic@gentoo.org>
* configure.ac: Add --enable-werror.
(XCFLAGS): Use it.
* configure: Regenerate.
--- a/libitm/configure
+++ b/libitm/configure
@@ -775,6 +775,7 @@ enable_maintainer_mode
enable_linux_futex
enable_tls
enable_symvers
+enable_werror
'
ac_precious_vars='build_alias
host_alias
@@ -1423,6 +1424,7 @@ Optional Features:
--enable-tls Use thread-local storage [default=yes]
--enable-symvers=STYLE enables symbol versioning of the shared library
[default=yes]
+ --enable-werror turns on -Werror [default=yes]
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -17491,9 +17493,18 @@ $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
fi
rm -f confcache
-# Add -Wall -Werror if we are using GCC.
+# Check whether --enable-werror was given.
+if test "${enable_werror+set}" = set; then :
+ enableval=$enable_werror;
+fi
+
+# Add -Wall if we are using GCC.
if test "x$GCC" = "xyes"; then
- XCFLAGS="$XCFLAGS -Wall -Werror"
+ XCFLAGS="$XCFLAGS -Wall"
+ # Add -Werror if requested.
+ if test "x$enable_werror" != "xno"; then
+ XCFLAGS="$XCFLAGS -Werror"
+ fi
fi
XCFLAGS="$XCFLAGS $XPCFLAGS"
--- a/libitm/configure.ac
+++ b/libitm/configure.ac
@@ -252,9 +252,15 @@ GCC_CHECK_ELF_STYLE_WEAKREF
CFLAGS="$save_CFLAGS"
AC_CACHE_SAVE
-# Add -Wall -Werror if we are using GCC.
+AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror],
+ [turns on -Werror @<:@default=yes@:>@])])
+# Add -Wall if we are using GCC.
if test "x$GCC" = "xyes"; then
- XCFLAGS="$XCFLAGS -Wall -Werror"
+ XCFLAGS="$XCFLAGS -Wall"
+ # Add -Werror if requested.
+ if test "x$enable_werror" != "xno"; then
+ XCFLAGS="$XCFLAGS -Werror"
+ fi
fi
XCFLAGS="$XCFLAGS $XPCFLAGS"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-01 6:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-01 6:19 [gentoo-commits] gentoo commit in src/patchsets/gcc/4.7.3/gentoo: 17_all_libitm-Werror.patch README.history Ryan Hill (dirtyepic)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox