From: Mike Frysinger Date: Wed, 8 Dec 2004 01:28:41 +0000 (+0000) Subject: fail early with cross-compilers X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e4af6f64265ec1f7027e9f53001fa8dfd646903;p=gentoo.git fail early with cross-compilers --- 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