summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-14 05:31:32 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-14 05:31:32 +0000
commitcecb054a8c78dbeded7785b2c99b9f29bfa67299 (patch)
treecd07fe473a305de9977e207baecc78b024df515d /eclass/toolchain-funcs.eclass
parentmake sure we return the correct status (diff)
downloadhistorical-cecb054a8c78dbeded7785b2c99b9f29bfa67299.tar.gz
historical-cecb054a8c78dbeded7785b2c99b9f29bfa67299.tar.bz2
historical-cecb054a8c78dbeded7785b2c99b9f29bfa67299.zip
err need to negate the logic
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass4
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}