diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-04-16 22:38:58 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-04-16 22:38:58 +0000 |
commit | a5b83426a4c598da6a6e586f5fd371fdb00a75d9 (patch) | |
tree | 46382b46817077e440eced210ffee1246e8f1f81 /eclass | |
parent | Added ~alpha keyword. (diff) | |
download | gentoo-2-a5b83426a4c598da6a6e586f5fd371fdb00a75d9.tar.gz gentoo-2-a5b83426a4c598da6a6e586f5fd371fdb00a75d9.tar.bz2 gentoo-2-a5b83426a4c598da6a6e586f5fd371fdb00a75d9.zip |
Disable both PIE and SSP on FreeBSD.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index f863fd51c2c1..a3d4142d929e 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.268 2006/04/16 18:52:52 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.269 2006/04/16 22:38:58 flameeyes Exp $ HOMEPAGE="http://gcc.gnu.org/" LICENSE="GPL-2 LGPL-2.1" @@ -355,6 +355,8 @@ XGCC() { get_make_var GCC_FOR_TARGET ; } # 2) PIE by default # 3) SSP by default hardened_gcc_works() { + [[ ${CTARGET} == *-freebsd* ]] && return 1 + if [[ $1 == "pie" ]] ; then want_pie || return 1 hardened_gcc_is_stable pie && return 0 |