diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-14 05:31:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-14 05:31:32 +0000 |
commit | 83159de7e829d8b6b5d4a60aafa5482fe92d43e2 (patch) | |
tree | dae331b6e4a12215abebe0d698605da9f022976e /eclass | |
parent | make sure we return the correct status (diff) | |
download | gentoo-2-83159de7e829d8b6b5d4a60aafa5482fe92d43e2.tar.gz gentoo-2-83159de7e829d8b6b5d4a60aafa5482fe92d43e2.tar.bz2 gentoo-2-83159de7e829d8b6b5d4a60aafa5482fe92d43e2.zip |
err need to negate the logic
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 4 |
1 files 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 <ninjas@gentoo.org> # @@ -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} |