From cecb054a8c78dbeded7785b2c99b9f29bfa67299 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 14 Dec 2004 05:31:32 +0000 Subject: [PATCH] err need to negate the logic --- eclass/toolchain-funcs.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 8e809b83f0dd..40028551fb74 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.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-funcs.eclass,v 1.13 2004/12/14 05:04:09 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.14 2004/12/14 05:31:32 vapier Exp $ # # Author: Toolchain Ninjas # @@ -92,7 +92,7 @@ tc-is-cross-compiler() { local ret tmpfile=$(emktemp).c echo 'int main(){return 0;}' > "${tmpfile}" $(tc-getCC) "${tmpfile}" -o "${tmpfile}".bin - "${tmpfile}".bin &>/dev/null + ! "${tmpfile}".bin &>/dev/null ret=$? rm -f "${tmpfile}" "${tmpfile}".bin return ${ret} -- 2.26.2