| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2009 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.152 2010/10/06 00:13:11 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.153 2010/10/27 07:19:24 robbat2 Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: mysql.eclass |
5 | # @ECLASS: mysql.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Author: Francesco Riosa (Retired) <vivo@gentoo.org> |
7 | # Author: Francesco Riosa (Retired) <vivo@gentoo.org> |
| 8 | # Maintainers: MySQL Team <mysql-bugs@gentoo.org> |
8 | # Maintainers: MySQL Team <mysql-bugs@gentoo.org> |
| … | |
… | |
| 977 | && CXXFLAGS="${CXXFLAGS} -fno-implicit-templates" |
977 | && CXXFLAGS="${CXXFLAGS} -fno-implicit-templates" |
| 978 | export CXXFLAGS |
978 | export CXXFLAGS |
| 979 | |
979 | |
| 980 | # bug #283926, with GCC4.4, this is required to get correct behavior. |
980 | # bug #283926, with GCC4.4, this is required to get correct behavior. |
| 981 | append-flags -fno-strict-aliasing |
981 | append-flags -fno-strict-aliasing |
|
|
982 | |
|
|
983 | # bug #335185, with GCC4.5 on x86 only, omit-frame-pointer causes a |
|
|
984 | # mis-compile |
|
|
985 | use x86 && [[ "$(gcc-version)" == "4.5" ]] && \ |
|
|
986 | append-flags -fno-omit-frame-pointer && \ |
|
|
987 | filter-flags -fomit-frame-pointer |
| 982 | |
988 | |
| 983 | econf \ |
989 | econf \ |
| 984 | --libexecdir="/usr/sbin" \ |
990 | --libexecdir="/usr/sbin" \ |
| 985 | --sysconfdir="${MY_SYSCONFDIR}" \ |
991 | --sysconfdir="${MY_SYSCONFDIR}" \ |
| 986 | --localstatedir="${MY_LOCALSTATEDIR}" \ |
992 | --localstatedir="${MY_LOCALSTATEDIR}" \ |