From: Travis Tilley Date: Sun, 7 Nov 2004 21:20:34 +0000 (+0000) Subject: only put boundschecking in IUSE if we're actually using the bounds checking patch... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=12dfccf97042701a97e549a95d21652830dbf8fa;p=gentoo.git only put boundschecking in IUSE if we're actually using the bounds checking patch in the ebuild --- diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 81eeceab65ea..0997c8cc727f 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.42 2004/11/03 19:22:50 lv Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.43 2004/11/07 21:20:34 lv Exp $ # # This eclass should contain general toolchain-related functions that are # expected to not change, or change much. @@ -17,7 +17,10 @@ if [ "${ETYPE}" == "gcc-library" ] ; then IUSE="nls build uclibc" SLOT="${CTARGET}-${SO_VERSION_SLOT:-5}" else - IUSE="static nls bootstrap build multilib gcj gtk f77 nocxx objc hardened uclibc n32 n64 boundschecking" + IUSE="static nls bootstrap build multilib gcj gtk f77 nocxx objc hardened uclibc n32 n64" + if [ -n "${HTB_VER}" ] ; then + IUSE="${IUSE} boundschecking" + fi if [ "${CHOST}" == "${CTARGET}" ] ; then SLOT="${PV%.*}" else