diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-12-20 14:30:03 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-20 14:30:03 +0000 |
commit | b2eb5cc19c1f7aa862d7f6fbb77e56a01b3341d6 (patch) | |
tree | b3beb3c6d007b4eab2e087e5a3520ba22f429fee /eclass | |
parent | Marking babl-0.0.22 ppc64 for bug 293127 (diff) | |
download | historical-b2eb5cc19c1f7aa862d7f6fbb77e56a01b3341d6.tar.gz historical-b2eb5cc19c1f7aa862d7f6fbb77e56a01b3341d6.tar.bz2 historical-b2eb5cc19c1f7aa862d7f6fbb77e56a01b3341d6.zip |
send gcc-config errors to /dev/null rather than trying to grep them out #290437
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 52a5b5dae32e..da884ff680cf 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.413 2009/12/14 21:14:13 truedfx Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.414 2009/12/20 14:30:03 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -2297,8 +2297,7 @@ do_gcc_config() { local current_gcc_config="" current_specs="" use_specs="" - # We grep out any possible errors - current_gcc_config=$(env -i ROOT="${ROOT}" gcc-config -c ${CTARGET} | grep -v '^ ') + current_gcc_config=$(env -i ROOT="${ROOT}" gcc-config -c ${CTARGET} 2>/dev/null) if [[ -n ${current_gcc_config} ]] ; then # figure out which specs-specific config is active current_specs=$(gcc-config -S ${current_gcc_config} | awk '{print $3}') |