blueness 14/10/15 22:27:25 Modified: toolchain-funcs.eclass Log: Clean up return code in gcc-specs functions in toolchain-funcs.eclass
Revision Changes Path 1.128 eclass/toolchain-funcs.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain-funcs.eclass?rev=1.128&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain-funcs.eclass?rev=1.128&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain-funcs.eclass?r1=1.127&r2=1.128 Index: toolchain-funcs.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v retrieving revision 1.127 retrieving revision 1.128 diff -u -r1.127 -r1.128 --- toolchain-funcs.eclass 11 Jul 2014 08:21:58 -0000 1.127 +++ toolchain-funcs.eclass 15 Oct 2014 22:27:25 -0000 1.128 @@ -1,6 +1,6 @@ -# Copyright 1999-2014 Gentoo Foundation +n Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.127 2014/07/11 08:21:58 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.128 2014/10/15 22:27:25 blueness Exp $ # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -169,7 +169,7 @@ # @FUNCTION: tc-is-cross-compiler # @RETURN: Shell true if we are using a cross-compiler, shell false otherwise tc-is-cross-compiler() { - return $([[ ${CBUILD:-${CHOST}} != ${CHOST} ]]) + [[ ${CBUILD:-${CHOST}} != ${CHOST} ]] } # @FUNCTION: tc-is-softfloat @@ -210,7 +210,7 @@ local host=${CTARGET:-${CHOST}} # *MiNT doesn't have shared libraries, only platform so far - return $([[ ${host} == *-mint* ]]) + [[ ${host} == *-mint* ]] } # @FUNCTION: tc-export_build_env @@ -578,37 +578,37 @@ gcc-specs-relro() { local directive directive=$(gcc-specs-directive link_command) - return $([[ "${directive/\{!norelro:}" != "${directive}" ]]) + [[ "${directive/\{!norelro:}" != "${directive}" ]] } # Returns true if gcc sets now gcc-specs-now() { local directive directive=$(gcc-specs-directive link_command) - return $([[ "${directive/\{!nonow:}" != "${directive}" ]]) + [[ "${directive/\{!nonow:}" != "${directive}" ]] } # Returns true if gcc builds PIEs gcc-specs-pie() { local directive directive=$(gcc-specs-directive cc1) - return $([[ "${directive/\{!nopie:}" != "${directive}" ]]) + [[ "${directive/\{!nopie:}" != "${directive}" ]] } # Returns true if gcc builds with the stack protector gcc-specs-ssp() { local directive directive=$(gcc-specs-directive cc1) - return $([[ "${directive/\{!fno-stack-protector:}" != "${directive}" ]]) + [[ "${directive/\{!fno-stack-protector:}" != "${directive}" ]] } # Returns true if gcc upgrades fstack-protector to fstack-protector-all gcc-specs-ssp-to-all() { local directive directive=$(gcc-specs-directive cc1) - return $([[ "${directive/\{!fno-stack-protector-all:}" != "${directive}" ]]) + [[ "${directive/\{!fno-stack-protector-all:}" != "${directive}" ]] } # Returns true if gcc builds with fno-strict-overflow gcc-specs-nostrict() { local directive directive=$(gcc-specs-directive cc1) - return $([[ "${directive/\{!fstrict-overflow:}" != "${directive}" ]]) + [[ "${directive/\{!fstrict-overflow:}" != "${directive}" ]] }
