From 00e9f9e35fbfb79dff6e9d097bf0e82b91560c3a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 15 Jan 2006 04:56:35 +0000 Subject: only add mudflap configure options with >=gcc-4 --- eclass/toolchain.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'eclass') 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 for the heads up. -- cgit v1.2.3-65-gdbad