From 4985366e256acf6ce68b1fea96eaf207e5835ee7 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 12 Dec 2005 20:52:03 +0000 Subject: [PATCH] Add -fwrapv to dodge gcc 4.1's latest creative reinterpretation of basic C semantics. --- mysql.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mysql.spec b/mysql.spec index 144e9a3..3383ee1 100644 --- a/mysql.spec +++ b/mysql.spec @@ -107,8 +107,9 @@ autoheader %build CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" -# MySQL 4.1.10 definitely doesn't work under strict aliasing -CFLAGS="$CFLAGS -fno-strict-aliasing" +# MySQL 4.1.10 definitely doesn't work under strict aliasing; also, +# gcc 4.1 breaks MySQL 5.0.16 without -fwrapv +CFLAGS="$CFLAGS -fno-strict-aliasing -fwrapv" %ifarch alpha # Can't link C++ objects into an executable without this. Odd! # -ECL 2002-12-19 @@ -377,11 +378,12 @@ fi %{_datadir}/sql-bench %changelog -* Fri Dec 9 2005 Tom Lane 5.0.16-1 +* Mon Dec 12 2005 Tom Lane 5.0.16-1 - Update to MySQL 5.0.16 - Add EXCEPTIONS-CLIENT license info to the shipped documentation - Make my_config.h architecture-independent for multilib installs; put the original my_config.h into my_config_$ARCH.h +- Add -fwrapv to CFLAGS so that gcc 4.1 doesn't break it * Fri Dec 09 2005 Jesse Keating - rebuilt