diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-12-24 04:20:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-12-24 04:20:08 +0000 |
commit | d800d36e38b43f9a208cedcb799fce69de54d30b (patch) | |
tree | f9fe5701f957c3a3fb6460940bc567bde7e1a7c6 /eclass | |
parent | Stable for HPPA (bug #447804). (diff) | |
download | historical-d800d36e38b43f9a208cedcb799fce69de54d30b.tar.gz historical-d800d36e38b43f9a208cedcb799fce69de54d30b.tar.bz2 historical-d800d36e38b43f9a208cedcb799fce69de54d30b.zip |
pass --enable-libstdcxx-time so that it tries to locate support in the C lib -- if it does not find it, it will skip support like normal and not fail or fall back to -lrt #411681
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 31b5e2e63b57..734a3b52195a 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.560 2012/11/29 01:16:41 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.561 2012/12/24 04:20:08 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -923,6 +923,13 @@ gcc-compiler-configure() { confgcc+=" --enable-java-awt=gtk" fi + # allow gcc to search for clock funcs in the main C lib. + # if it can't find them, then tough cookies -- we aren't + # going to link in -lrt to all C++ apps. #411681 + if tc_version_is_at_least 4.4 && is_cxx ; then + confgcc+=" --enable-libstdcxx-time" + fi + # newer gcc versions like to bootstrap themselves with C++, # so we need to manually disable it ourselves if tc_version_is_at_least 4.7 && ! is_cxx ; then |