rpms/mysql/devel mysql.spec,1.64,1.65

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Dec 12 20:52:06 UTC 2005


Author: tgl

Update of /cvs/dist/rpms/mysql/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv17727

Modified Files:
	mysql.spec 
Log Message:
Add -fwrapv to dodge gcc 4.1's latest creative reinterpretation of basic
C semantics.


Index: mysql.spec
===================================================================
RCS file: /cvs/dist/rpms/mysql/devel/mysql.spec,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- mysql.spec	10 Dec 2005 05:13:43 -0000	1.64
+++ mysql.spec	12 Dec 2005 20:52:03 -0000	1.65
@@ -107,8 +107,9 @@
 
 %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 @@
 %{_datadir}/sql-bench
 
 %changelog
-* Fri Dec  9 2005 Tom Lane <tgl at redhat.com> 5.0.16-1
+* Mon Dec 12 2005 Tom Lane <tgl at redhat.com> 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 <jkeating at redhat.com>
 - rebuilt




More information about the fedora-cvs-commits mailing list