diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-08 01:28:41 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-08 01:28:41 +0000 |
commit | 2e4af6f64265ec1f7027e9f53001fa8dfd646903 (patch) | |
tree | b7126e5102a23bfe9511b2e4aad1614c77e50aa5 /eclass | |
parent | Bug #70111, fix tc-getCC invocation. (diff) | |
download | historical-2e4af6f64265ec1f7027e9f53001fa8dfd646903.tar.gz historical-2e4af6f64265ec1f7027e9f53001fa8dfd646903.tar.bz2 historical-2e4af6f64265ec1f7027e9f53001fa8dfd646903.zip |
fail early with cross-compilers
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 39c31df6dea7..d5d730e97c48 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.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.eclass,v 1.66 2004/12/07 04:07:42 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.67 2004/12/08 01:28:41 vapier Exp $ HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" @@ -424,6 +424,9 @@ libc_has_ssp() { grep 'FUNC.*GLOBAL.*__stack_smash_handler')" ] then return 0 + elif [[ ${CTARGET} != ${CHOST} ]] + then + die "'${my_libc}' was detected w/out ssp, that sucks" else return 1 fi |