# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.23 2005/01/15 01:19:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.24 2005/01/15 09:05:56 vapier Exp $
#
# Author: Toolchain Ninjas <ninjas@gentoo.org>
#
local type=$1
local host=$2
- [[ -z ${host} ]] && arg=${CHOST}
+ [[ -z ${host} ]] && arg=${CTARGET:-${CHOST}}
case ${host} in
alpha*) echo alpha;;
# 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.78 2005/01/15 04:12:51 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.79 2005/01/15 09:05:56 vapier Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
# Fixup libtool to correctly generate .la files with portage
cd ${S}
- elibtoolize --portage --shallow
+ elibtoolize --portage --shallow --no-uclibc
gnuconfig_update
# 3 stage bootstrapping doesnt quite work when you cant run the
# resulting binaries natively ^^;
GCC_MAKE_TARGET=${GCC_MAKE_TARGET:-all}
- elif use x86 || use amd64 || use ppc64; then
+ elif { use x86 || use amd64 || use ppc64 ;} && [[ ${GCC_BRANCH_VER} != "3.3" ]] ; then
GCC_MAKE_TARGET=${GCC_MAKE_TARGET:-profiledbootstrap}
else
GCC_MAKE_TARGET=${GCC_MAKE_TARGET:-bootstrap-lean}
# ...sure, why not?
strip-unsupported-flags
+ # dont want to funk ourselves
filter-flags '-mabi*' -m32 -m64
+ # filter *common* flags that will make other gcc's angry
+ if [[ ${GCC_BRANCH_VER} == "3.3" ]] ; then
+ case $(tc-arch ${CTARGET}) in
+ x86) filter-flags '-mtune=*';;
+ esac
+ fi
+
export GCJFLAGS=${GCJFLAGS:-CFLAGS}
}