From c2afa8c1169d22c5a3f75db6b87e20cb586dbcff Mon Sep 17 00:00:00 2001 From: Mike Frysinger <vapier@gentoo.org> Date: Tue, 29 May 2007 22:48:27 +0000 Subject: only enable mudflap when wanted (aka not kgcc64) --- eclass/toolchain.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 885644a4beb9..a3769715f2bb 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.335 2007/05/24 02:46:53 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.336 2007/05/29 22:48:27 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1131,7 +1131,11 @@ gcc-compiler-configure() { fi if tc_version_is_at_least "4.0" ; then - confgcc="${confgcc} $(use_enable mudflap libmudflap)" + if has mudflap ${IUSE} ; then + confgcc="${confgcc} $(use_enable mudflap libmudflap)" + else + confgcc="${confgcc} --disable-libmudflap" + fi if want_libssp ; then confgcc="${confgcc} --enable-libssp" -- cgit v1.2.3-65-gdbad