summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-15 03:08:45 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-15 03:08:45 +0000
commit38e1b26678427825d2ad338f4b7c1222a22c2fb5 (patch)
treee43e8aa3d7263eedd5c431e78d34b9e4f40593f9 /eclass/toolchain.eclass
parentbah fix keywords. (diff)
downloadgentoo-2-38e1b26678427825d2ad338f4b7c1222a22c2fb5.tar.gz
gentoo-2-38e1b26678427825d2ad338f4b7c1222a22c2fb5.tar.bz2
gentoo-2-38e1b26678427825d2ad338f4b7c1222a22c2fb5.zip
add support for C++ with avr targets; fix by Ludek Stepan #99020
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 0594d6f71d86..9efa9bb40684 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.176 2005/07/14 03:28:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.177 2005/07/15 03:08:45 vapier Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -1088,6 +1088,8 @@ gcc_do_configure() {
# disable a bunch of features or gcc goes boom
if is_crosscompile && [[ ${GCC_LANG} == "c" ]] ; then
confgcc="${confgcc} --disable-shared --disable-threads --without-headers"
+ elif is_crosscompile && [[ ${CTARGET} == "avr" ]] ; then
+ confgcc="${confgcc} $(use_enable !static shared) --disable-threads"
else
confgcc="${confgcc} $(use_enable !static shared) --enable-threads=posix"
fi