diff options
author | Kevin F. Quinn <kevquinn@gentoo.org> | 2005-12-09 22:16:03 +0000 |
---|---|---|
committer | Kevin F. Quinn <kevquinn@gentoo.org> | 2005-12-09 22:16:03 +0000 |
commit | 1a02ec32b53e2ee02a68da85a4235a4978f5124b (patch) | |
tree | 5754f0295aaa8c68db59862c537177488959c552 /eclass | |
parent | Marked stable on x86 (diff) | |
download | historical-1a02ec32b53e2ee02a68da85a4235a4978f5124b.tar.gz historical-1a02ec32b53e2ee02a68da85a4235a4978f5124b.tar.bz2 historical-1a02ec32b53e2ee02a68da85a4235a4978f5124b.zip |
build libssp and crtbegin/crtend without ssp so that apps using them
without libc can build. Thanks to Peter S. Mazinger for the change.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index a9520fccb3b4..b9bfd4b2b44e 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.229 2005/12/06 06:14:25 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.230 2005/12/09 22:16:03 kevquinn Exp $ HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" LICENSE="GPL-2 LGPL-2.1" @@ -1857,8 +1857,8 @@ do_gcc_SSP_patches() { epatch "${GCC_FILESDIR}"/pro-police-docs.patch fi - # we apply only the needed parts of protectonly.dif - sed -e 's|^CRTSTUFF_CFLAGS = |CRTSTUFF_CFLAGS = -fno-stack-protector-all |'\ + # Don't build crtbegin/end with ssp + sed -e 's|^CRTSTUFF_CFLAGS = |CRTSTUFF_CFLAGS = -fno-stack-protector |'\ -i gcc/Makefile.in || die "Failed to update crtstuff!" # if gcc in a stage3 defaults to ssp, is version 3.4.0 and a stage1 is built @@ -1876,6 +1876,10 @@ do_gcc_SSP_patches() { else update_gcc_for_libc_ssp fi + + # Don't build libgcc with ssp + sed -e 's|^\(LIBGCC2_CFLAGS.*\)$|\1 -fno-stack-protector|' \ + -i gcc/Makefile.in || die "Failed to update gcc!" } # If glibc or uclibc has been patched to provide the necessary symbols itself, |