From 6dd61faaa3ce2ac023e09825cfa86445bbf63e18 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 2 Nov 2010 20:27:41 +0000 Subject: Bug #335185, #335995 redux: If GCC >= 4.3.3, block omit-frame-pointer. --- eclass/mysql.eclass | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'eclass/mysql.eclass') diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass index 09576937138c..eebafc006e56 100644 --- a/eclass/mysql.eclass +++ b/eclass/mysql.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.154 2010/10/28 20:46:11 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.155 2010/11/02 20:27:41 robbat2 Exp $ # @ECLASS: mysql.eclass # @MAINTAINER: @@ -983,9 +983,12 @@ mysql_src_configure() { # bug #283926, with GCC4.4, this is required to get correct behavior. append-flags -fno-strict-aliasing - # bug #335185, with GCC4.5 on x86 only, omit-frame-pointer causes a - # mis-compile - use x86 && [[ "$(gcc-version)" == "4.5" ]] && \ + # bug #335185, #335995, with >= GCC4.3.3 on x86 only, omit-frame-pointer + # causes a mis-compile. + # Upstream bugs: + # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38562 + # http://bugs.mysql.com/bug.php?id=45205 + use x86 && version_is_at_least "4.3.3" "$(gcc-fullversion)" && \ append-flags -fno-omit-frame-pointer && \ filter-flags -fomit-frame-pointer -- cgit v1.2.3-65-gdbad