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

Diff of /eclass/mysql-autotools.eclass

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

Revision 1.10 Revision 1.11
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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-autotools.eclass,v 1.10 2012/11/01 23:57:50 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.11 2013/01/20 02:23:10 robbat2 Exp $
4 4
5# @ECLASS: mysql-autotools.eclass 5# @ECLASS: mysql-autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# MySQL Team <mysql-bugs@gentoo.org> 7# MySQL Team <mysql-bugs@gentoo.org>
8# Robin H. Johnson <robbat2@gentoo.org> 8# Robin H. Johnson <robbat2@gentoo.org>
299 299
300 use static && \ 300 use static && \
301 plugins_sta="${plugins_sta} ${plugins_dyn}" && \ 301 plugins_sta="${plugins_sta} ${plugins_dyn}" && \
302 plugins_dyn="" 302 plugins_dyn=""
303 303
304 # Google MySQL, bundle what upstream supports
305 if [[ "${PN}" == "google-mysql" ]]; then
306 for x in innobase innodb_plugin innodb ; do
307 plugins_sta="${plugins_sta//$x}"
308 plugins_dyn="${plugins_dyn//$x}"
309 done
310 plugins_sta="${plugins_sta} innodb_plugin googlestats"
311 myconf="${myconf} --with-perftools-dir=/usr --enable-perftools-tcmalloc"
312 # use system lzo for google-mysql
313 myconf="${myconf} --with-lzo2-dir=/usr"
314 fi
315
304 einfo "Available plugins: ${plugins_avail}" 316 einfo "Available plugins: ${plugins_avail}"
305 einfo "Dynamic plugins: ${plugins_dyn}" 317 einfo "Dynamic plugins: ${plugins_dyn}"
306 einfo "Static plugins: ${plugins_sta}" 318 einfo "Static plugins: ${plugins_sta}"
307 einfo "Disabled plugins: ${plugins_dis}" 319 einfo "Disabled plugins: ${plugins_dis}"
308 320
459 filter-flags "-fstack-protector-all" 471 filter-flags "-fstack-protector-all"
460 fi 472 fi
461 473
462 CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-strict-aliasing" 474 CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-strict-aliasing"
463 CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-rtti" 475 CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-rtti"
476 # storage/googlestats, sql/ in google-mysql are using C++ templates
477 # implicitly. Upstream might be interested in this, exclude
478 # -fno-implicit-templates for google-mysql for now.
464 mysql_version_is_at_least "5.0" \ 479 mysql_version_is_at_least "5.0" \
480 && [[ "${PN}" != "google-mysql" ]] \
465 && CXXFLAGS="${CXXFLAGS} -fno-implicit-templates" 481 && CXXFLAGS="${CXXFLAGS} -fno-implicit-templates"
466 export CXXFLAGS 482 export CXXFLAGS
467 483
468 # bug #283926, with GCC4.4, this is required to get correct behavior. 484 # bug #283926, with GCC4.4, this is required to get correct behavior.
469 append-flags -fno-strict-aliasing 485 append-flags -fno-strict-aliasing

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20