From f43b98d07c8c9aa76178001c364308d8a152fce4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 6 Dec 2011 04:52:25 +0000 Subject: drop HARDENED_{GCC,PIE}_WORKS variable checking since no one sets these anymore --- eclass/toolchain.eclass | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'eclass') diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 6d85d9f290b9..9fdaef23d45c 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.496 2011/12/06 04:50:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.497 2011/12/06 04:52:25 vapier Exp $ # # Maintainer: Toolchain Ninjas @@ -348,7 +348,7 @@ hardened_gcc_works() { return $? elif [[ $1 == "ssp" ]] ; then [[ -n ${SPECS_VER} ]] || return 1 - use_if_iuse no$1 && return 1 + use_if_iuse nossp && return 1 hardened_gcc_is_stable ssp return $? else @@ -360,21 +360,18 @@ hardened_gcc_works() { } hardened_gcc_is_stable() { + local tocheck if [[ $1 == "pie" ]] ; then - # HARDENED_* variables are deprecated and here for compatibility - local tocheck="${HARDENED_PIE_WORKS} ${HARDENED_GCC_WORKS}" if [[ ${CTARGET} == *-uclibc* ]] ; then - tocheck="${tocheck} ${PIE_UCLIBC_STABLE}" + tocheck=${PIE_UCLIBC_STABLE} else - tocheck="${tocheck} ${PIE_GLIBC_STABLE}" + tocheck=${PIE_GLIBC_STABLE} fi elif [[ $1 == "ssp" ]] ; then - # ditto - local tocheck="${HARDENED_SSP_WORKS} ${HARDENED_GCC_WORKS}" if [[ ${CTARGET} == *-uclibc* ]] ; then - tocheck="${tocheck} ${SSP_UCLIBC_STABLE}" + tocheck=${SSP_UCLIBC_STABLE} else - tocheck="${tocheck} ${SSP_STABLE}" + tocheck=${SSP_STABLE} fi else die "hardened_gcc_stable needs to be called with pie or ssp" -- cgit v1.2.3-65-gdbad