/[gentoo-x86]/eclass/mysql-cmake.eclass
Gentoo

Diff of /eclass/mysql-cmake.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.14 Revision 1.15
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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-cmake.eclass,v 1.14 2013/02/13 00:40:57 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.15 2013/03/04 19:10:31 robbat2 Exp $
4 4
5# @ECLASS: mysql-cmake.eclass 5# @ECLASS: mysql-cmake.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Maintainers: 7# Maintainers:
8# - MySQL Team <mysql-bugs@gentoo.org> 8# - MySQL Team <mysql-bugs@gentoo.org>
219 # last -fPIC fixup, per bug #305873 219 # last -fPIC fixup, per bug #305873
220 i="${S}"/storage/innodb_plugin/plug.in 220 i="${S}"/storage/innodb_plugin/plug.in
221 [ -f "${i}" ] && sed -i -e '/CFLAGS/s,-prefer-non-pic,,g' "${i}" 221 [ -f "${i}" ] && sed -i -e '/CFLAGS/s,-prefer-non-pic,,g' "${i}"
222 222
223 rm -f "scripts/mysqlbug" 223 rm -f "scripts/mysqlbug"
224 epatch_user
224} 225}
225 226
226# @FUNCTION: mysql-cmake_src_configure 227# @FUNCTION: mysql-cmake_src_configure
227# @DESCRIPTION: 228# @DESCRIPTION:
228# Configure mysql to build the code for Gentoo respecting the use flags. 229# Configure mysql to build the code for Gentoo respecting the use flags.
273 # Bug #114895, bug #110149 274 # Bug #114895, bug #110149
274 filter-flags "-O" "-O[01]" 275 filter-flags "-O" "-O[01]"
275 276
276 CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-strict-aliasing" 277 CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-strict-aliasing"
277 CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-rtti" 278 CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-rtti"
279 # Causes linkage failures. Upstream bug #59607 removes it
280 if ! mysql_version_is_at_least "5.6" ; then
278 CXXFLAGS="${CXXFLAGS} -fno-implicit-templates" 281 CXXFLAGS="${CXXFLAGS} -fno-implicit-templates"
282 fi
279 export CXXFLAGS 283 export CXXFLAGS
280 284
281 # bug #283926, with GCC4.4, this is required to get correct behavior. 285 # bug #283926, with GCC4.4, this is required to get correct behavior.
282 append-flags -fno-strict-aliasing 286 append-flags -fno-strict-aliasing
283 287

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20