diff options
author | Magnus Granberg <zorry@gentoo.org> | 2012-02-12 14:17:33 +0000 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2012-02-12 14:17:33 +0000 |
commit | d13491eff1580608a91fe88ef28cee36735cb246 (patch) | |
tree | 925ea86c407b3cb151561e69df9552139f411cc7 /eclass/toolchain.eclass | |
parent | Reviving package with version 3.15.1 (diff) | |
download | historical-d13491eff1580608a91fe88ef28cee36735cb246.tar.gz historical-d13491eff1580608a91fe88ef28cee36735cb246.tar.bz2 historical-d13491eff1580608a91fe88ef28cee36735cb246.zip |
Fix bug 301299 for gcc
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 2b4df7abfd32..e63b9192b560 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.515 2012/01/17 16:05:59 zorry Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.516 2012/02/12 14:17:33 zorry Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -9,7 +9,7 @@ HOMEPAGE="http://gcc.gnu.org/" LICENSE="GPL-2 LGPL-2.1" RESTRICT="strip" # cross-compilers need controlled stripping -inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib fixheadtails +inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib fixheadtails pax-utils EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test pkg_preinst src_install pkg_postinst pkg_prerm pkg_postrm DESCRIPTION="Based on the ${ECLASS} eclass" @@ -1585,6 +1585,12 @@ toolchain_src_install() { # Don't scan .gox files for executable stacks - false positives export QA_EXECSTACK="usr/lib*/go/*/*.gox" export QA_WX_LOAD="usr/lib*/go/*/*.gox" + + # Disable RANDMMAP so PCH works. #301299 + if tc_version_is_at_least 4.3 ; then + pax-mark -r "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}/cc1" + pax-mark -r "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}/cc1plus" + fi } gcc_slot_java() { |