summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-20 14:30:03 +0000
committerMike Frysinger <vapier@gentoo.org>2009-12-20 14:30:03 +0000
commit1a66eeff7a3e942c2c77b4952c08875bb52829b6 (patch)
tree901a94bdfcb568b4bbda791c28c5f8765ca63c83 /eclass
parentMarking babl-0.0.22 ppc64 for bug 293127 (diff)
downloadgentoo-2-1a66eeff7a3e942c2c77b4952c08875bb52829b6.tar.gz
gentoo-2-1a66eeff7a3e942c2c77b4952c08875bb52829b6.tar.bz2
gentoo-2-1a66eeff7a3e942c2c77b4952c08875bb52829b6.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.eclass5
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}')