diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-11-20 20:44:33 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-11-20 20:44:33 +0000 |
commit | 812ad62a9aaab7663bed43d6fb4458a844cc72fd (patch) | |
tree | 615b2786d69ab647da3257e4222db25513651e11 /eclass | |
parent | Fix sed line, closes bug #246753. (diff) | |
download | gentoo-2-812ad62a9aaab7663bed43d6fb4458a844cc72fd.tar.gz gentoo-2-812ad62a9aaab7663bed43d6fb4458a844cc72fd.tar.bz2 gentoo-2-812ad62a9aaab7663bed43d6fb4458a844cc72fd.zip |
Disable some parts of SSP per bug #246652 with GCC3 as they cause NDB failures.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mysql.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass index dbef0c5d9dd0..0e9cc051006e 100644 --- a/eclass/mysql.eclass +++ b/eclass/mysql.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.100 2008/11/14 22:07:03 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.101 2008/11/20 20:44:33 robbat2 Exp $ # Author: Francesco Riosa (Retired) <vivo@gentoo.org> # Maintainer: MySQL Team <mysql-bugs@gentoo.org> @@ -644,6 +644,12 @@ mysql_src_compile() { # glib-2.3.2_pre fix, bug #16496 append-flags "-DHAVE_ERRNO_AS_DEFINE=1" + # As discovered by bug #246652, doing a double-level of SSP causes NDB to + # fail badly during cluster startup. + if [[ $(gcc-major-version) -lt 4 ]]; then + filter-flags "-fstack-protector-all" + fi + CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-strict-aliasing" CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-rtti" mysql_version_is_at_least "5.0" \ |