summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-05-29 22:48:27 +0000
committerMike Frysinger <vapier@gentoo.org>2007-05-29 22:48:27 +0000
commitc2afa8c1169d22c5a3f75db6b87e20cb586dbcff (patch)
treec922ced14944968100d5587a1cbabd97a365e1e4 /eclass/toolchain.eclass
parentByte compile .py files for some speedup, bug #180191 (diff)
downloadgentoo-2-c2afa8c1169d22c5a3f75db6b87e20cb586dbcff.tar.gz
gentoo-2-c2afa8c1169d22c5a3f75db6b87e20cb586dbcff.tar.bz2
gentoo-2-c2afa8c1169d22c5a3f75db6b87e20cb586dbcff.zip
only enable mudflap when wanted (aka not kgcc64)
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass8
1 files changed, 6 insertions, 2 deletions
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"