summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-12-24 04:20:08 +0000
committerMike Frysinger <vapier@gentoo.org>2012-12-24 04:20:08 +0000
commitd800d36e38b43f9a208cedcb799fce69de54d30b (patch)
treef9fe5701f957c3a3fb6460940bc567bde7e1a7c6 /eclass
parentStable for HPPA (bug #447804). (diff)
downloadhistorical-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.eclass9
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