summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-15 04:56:35 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-15 04:56:35 +0000
commite3674689264cf4c9b94d02e5b1e055fb47731c7e (patch)
tree7c0f9cfb7dd48fd5588169ef14e45d04bab00afe /eclass
parentStable on SPARC wrt bug #118946. (diff)
downloadgentoo-2-e3674689264cf4c9b94d02e5b1e055fb47731c7e.tar.gz
gentoo-2-e3674689264cf4c9b94d02e5b1e055fb47731c7e.tar.bz2
gentoo-2-e3674689264cf4c9b94d02e5b1e055fb47731c7e.zip
only add mudflap configure options with >=gcc-4
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index f51d071e96ca..ce84296968a3 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.243 2006/01/13 19:00:17 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.244 2006/01/15 04:56:35 vapier Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -1076,7 +1076,9 @@ gcc-compiler-configure() {
confgcc="${confgcc} --disable-multilib"
fi
- confgcc="${confgcc} $(use_enable mudflap libmudflap)"
+ if version_is_at_least "4.0" ; then
+ confgcc="${confgcc} $(use_enable mudflap libmudflap)"
+ fi
# GTK+ is preferred over xlib in 3.4.x (xlib is unmaintained
# right now). Much thanks to <csm@gnu.org> for the heads up.