summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2009-02-05 05:08:27 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2009-02-05 05:08:27 +0000
commitf95ead9a2b4ca9b60a8707967aba535ffe28c52b (patch)
treef2fa1ba18687edf98ae90511d959008da3e934b1
parentfix Manifest (diff)
downloadje_fro-f95ead9a2b4ca9b60a8707967aba535ffe28c52b.tar.gz
je_fro-f95ead9a2b4ca9b60a8707967aba535ffe28c52b.tar.bz2
je_fro-f95ead9a2b4ca9b60a8707967aba535ffe28c52b.zip
Added to portage
svn path=/; revision=261
-rw-r--r--sys-libs/libstdc++-v3/ChangeLog221
-rw-r--r--sys-libs/libstdc++-v3/Manifest4
-rw-r--r--sys-libs/libstdc++-v3/files/libstdc++-v3-open_missing_mode.patch12
-rw-r--r--sys-libs/libstdc++-v3/libstdc++-v3-3.3.6.ebuild294
4 files changed, 0 insertions, 531 deletions
diff --git a/sys-libs/libstdc++-v3/ChangeLog b/sys-libs/libstdc++-v3/ChangeLog
deleted file mode 100644
index 5d67ca2..0000000
--- a/sys-libs/libstdc++-v3/ChangeLog
+++ /dev/null
@@ -1,221 +0,0 @@
-# ChangeLog for sys-libs/libstdc++-v3
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libstdc++-v3/ChangeLog,v 1.55 2009/02/01 22:51:10 mr_bones_ Exp $
-
- 04 Feb 2009; Jeff Gardner <je_fro@gentoo.org>
- +files/libstdc++_amd64_multilib_hack.patch, +libstdc++-v3-3.3.6.ebuild:
- Imported into je_fro overlay.
-
- 01 Feb 2009; Michael Sterrett <mr_bones_@gentoo.org>
- libstdc++-v3-3.3.3-r1.ebuild, libstdc++-v3-3.3.4.ebuild,
- libstdc++-v3-3.3.6.ebuild:
- app-admin/eselect-compiler is long gone
-
- 21 Jan 2009; Guy Martin <gmsoft@gentoo.org> libstdc++-v3-3.3.6.ebuild:
- hppa stable
-
- 06 Nov 2008; Jeroen Roovers <jer@gentoo.org> libstdc++-v3-3.3.6.ebuild:
- Marked ~hppa too. Thanks to LuckyLuke for testing.
-
- 16 Mar 2008; Samuli Suominen <drac@gentoo.org> libstdc++-v3-3.3.6.ebuild:
- amd64 stable wrt #208934, thanks to Jon and Matthias.
-
- 13 Mar 2008; Markus Rothe <corsair@gentoo.org>
- libstdc++-v3-3.3.3-r1.ebuild, libstdc++-v3-3.3.4.ebuild,
- libstdc++-v3-3.3.6.ebuild:
- Mark this package -ppc64. Does not build with gcc-4 on ppc64. ppc64 moved to
- sys-libs/libstdc++-v3-bin. Bug #213286
-
- 24 Apr 2007; Raúl Porcel <armin76@gentoo.org> libstdc++-v3-3.3.6.ebuild:
- x86 stable
-
- 09 Dec 2006; Timothy Redaelli <drizzt@gentoo.org>
- libstdc++-v3-3.3.6.ebuild:
- Change cp -a with cp -pPR for not-GNU compatibility.
-
- 14 Aug 2006; <solar@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild,
- libstdc++-v3-3.3.4.ebuild, libstdc++-v3-3.3.6.ebuild:
- - switch default ordering of gcc-config and eselect-compiler to work around
- portage bug
-
- 21 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
- libstdc++-v3-3.3.6.ebuild:
- Add ~x86-fbsd keyword as needed to add diablo-jre-bin (see bug #141071).
-
- 06 Jun 2006; Jeremy Huddleston <eradicator@gentoo.org>
- libstdc++-v3-3.3.3-r1.ebuild, libstdc++-v3-3.3.4.ebuild,
- libstdc++-v3-3.3.6.ebuild:
- Updated DEPEND to accept eselect-compiler.
-
- 27 Apr 2006; Alec Warner <antarus@gentoo.org>
- files/digest-libstdc++-v3-3.3.3-r1, Manifest:
- Fixing SHA256 digest, pass four
-
- 24 Apr 2006; Emanuele Giaquinta <exg@gentoo.org>
- libstdc++-v3-3.3.6.ebuild:
- Stable on ppc.
-
- 29 Apr 2006; Joshua Kinard <kumba@gentoo.org> libstdc++-v3-3.3.4.ebuild:
- Marked stable on mips.
-
- 10 Feb 2006; Herbie Hopkins <herbs@gentoo.org> libstdc++-v3-3.3.4.ebuild,
- libstdc++-v3-3.3.6.ebuild:
- Use correct libdir in env.d file.
-
- 22 Jan 2006; Markus Rothe <corsair@gentoo.org> libstdc++-v3-3.3.6.ebuild:
- Stable on ppc64
-
- 07 Jan 2006; Carsten Lohrke <carlo@gentoo.org> metadata.xml:
- Maintainer retired.
-
- 05 Jan 2006; Gustavo Zacarias <gustavoz@gentoo.org>
- libstdc++-v3-3.3.6.ebuild:
- Stable on sparc
-
- 02 Dec 2005; Mark Loeser <halcy0n@gentoo.org> libstdc++-v3-3.3.4.ebuild:
- Stable on x86
-
- 25 Sep 2005; Chris Bainbridge <chrb@gentoo.org>
- libstdc++-v3-3.3.3-r1.ebuild, libstdc++-v3-3.3.4.ebuild,
- libstdc++-v3-3.3.6.ebuild:
- Remove gcc 3.4 flag -mno-tls-direct-seg-refs, bug #103827
-
- 23 Jul 2005; Tony Vroon <chainsaw@gentoo.org> libstdc++-v3-3.3.4.ebuild,
- libstdc++-v3-3.3.6.ebuild:
- Fix typo; has_multlib_profile -> has_multilib_profile.
-
-*libstdc++-v3-3.3.6 (23 Jul 2005)
-
- 23 Jul 2005; Jeremy Huddleston <eradicator@gentoo.org>
- +libstdc++-v3-3.3.6.ebuild:
- Version bump.
-
- 04 Jun 2005; Danny van Dyk <kugelfang@gentoo.org>
- libstdc++-v3-3.3.4.ebuild:
- Fixed multilib handling, both triggers (has_multilib_profile) and
- directories (lib64 instead lib).
-
- 11 May 2005; Diego Pettenò <flameeyes@gentoo.org>
- libstdc++-v3-3.3.4.ebuild:
- Make libstdc++ depend on glibc only on glibc systems.
-
- 07 Feb 2005; Markus Rothe <corsair@gentoo.org> libstdc++-v3-3.3.4.ebuild:
- Fix typo in ppc64 CFLAGS-filter
-
- 21 Nov 2004; Tom Gall <tgall@gentoo.org> libstdc++-v3-3.3.4.ebuild:
- fix bug #70972 on ppc64
-
- 11 Nov 2004; Joshua Kinard <kumba@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild,
- libstdc++-v3-3.3.4.ebuild:
- Marked unstable on sparc.
-
- 31 Oct 2004; Joshua Kinard <kumba@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- Marked stable on mips.
-
- 30 Oct 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild,
- libstdc++-v3-3.3.4.ebuild:
- updated the ebuild with a table of known valid arch settings for i386/x86-64,
- mips, and rs6000/ppc/ppc64
-
- 26 Oct 2004; Daniel Goller <morfic@gentoo.org> libstdc++-v3-3.3.4.ebuild:
- Do the required magic to deal with G3, G4, G5 archs on gcc3.3
- Closing bug 64252
-
- 11 Sep 2004; Travis Tilley <lv@gentoo.org> -libstdc++-v3-3.3.4-r1.ebuild:
- temporarily removing ebuild pending a redesign of the toolchain eclass.
- compatibility library targets should be handled differently from normal
- library targets.
-
-*libstdc++-v3-3.3.4-r1 (05 Sep 2004)
-
- 05 Sep 2004; Travis Tilley <lv@gentoo.org> +libstdc++-v3-3.3.4-r1.ebuild:
- added stack smashing protection and converted the ebuild over to using the new
- toolchain.eclass
-
- 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
- libstdc++-v3-3.3.3-r1.ebuild:
- Masked libstdc++-v3-3.3.3-r1.ebuild stable for ppc
-
- 01 Sep 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild,
- libstdc++-v3-3.3.4.ebuild:
- made libstdc++-v3 use $(get_libdir) for optionally installing to lib32/lib64
- based on the CONF_LIBDIR setting. CONF_LIBDIR wont be fully supported until
- portage 2.0.51
-
-*libstdc++-v3-3.3.4 (29 Aug 2004)
-
- 29 Aug 2004; Travis Tilley <lv@gentoo.org> +libstdc++-v3-3.3.4.ebuild:
- version bump
-
- 28 Aug 2004; <solar@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- added call to gnuconfig_update
-
- 28 Aug 2004; <solar@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- remove glibc from the depends if USE=uclibc is set
-
- 19 Aug 2004; Guy Martin <gmsoft@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- Removed hppa KEYWORD until we have a working >=gcc-3.3.3.
-
- 17 Aug 2004; Luca Barbato <lu_zero@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- Marked ~ppc
-
- 02 Aug 2004; Daniel Goller <morfic@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- Without stable deps reversing x86 to ~x86
-
- 01 Aug 2004; Tom Gall <tgall@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- stable on ppc64, bug #59028
-
- 31 Jul 2004; Aron Griffis <agriffis@gentoo.org>
- libstdc++-v3-3.3.3-r1.ebuild:
- replace-flags -march=pentium-m -march=pentium3 for gcc-3.3 compat #58967
-
- 30 Jul 2004; Daniel Goller <morfic@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- Marked stable on x86
-
- 25 Jul 2004; Daniel Goller <morfic@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- Marked ~x86 for gcc3.4 profile
-
- 15 Jul 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- added -fstack-protector and a few others to the list of filtered flags
-
- 13 Jul 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- filter some gcc 3.4 flags that the gcc 3.3.3 xgcc will fail on
-
- 11 Jul 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- gcc 3.3 doesnt support -mtune on numerous archs, so xgcc will fail if we have
- it in CFLAGS. the ebuild now filters this flag.
-
- 02 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
- libstdc++-v3-3.3.3-r1.ebuild:
- virtual/glibc -> virtual/libc
-
- 10 Jun 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- stable on amd64
-
- 10 Jun 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- fixed the bug where some apps would fail to link if libstdc++-v3 is installed.
- I didnt have previous ebuilds remove the .so symlink... this one does.
-
- 31 May 2004; Joshua Kinard <kumba@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- Added ~mips to KEYWORDS.
-
- 26 May 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- adding ~amd64 keyword now that gcc 3.4 is also marked ~amd64
-
- 27 May 2004; Travis Tilley <lv@gentoo.org> libstdc++-v3-3.3.3-r1.ebuild:
- changed directory so that it doesnt clash with gcc 3.3.3
-
-*libstdc++-v3-3.3.3-r1 (24 May 2004)
-
- 24 May 2004; Travis Tilley <lv@gentoo.org> +libstdc++-v3-3.3.3-r1.ebuild,
- -libstdc++-v3-3.3.3.ebuild:
- moved library to versioned directory with an env.d entry that tries to be as
- far after the 3.4 libstdc++ as possible. hopefully this will fix the problems
- people see with arts and similar ebuilds when the compat package is installed.
-
-*libstdc++-v3-3.3.3 (23 May 2004)
-
- 23 May 2004; Travis Tilley <lv@gentoo.org> +Changelog,
- +files/libstdc++_amd64_multilib_hack.patch, +libstdc++-v3-3.3.3.ebuild:
- initial commit
-
diff --git a/sys-libs/libstdc++-v3/Manifest b/sys-libs/libstdc++-v3/Manifest
deleted file mode 100644
index a059341..0000000
--- a/sys-libs/libstdc++-v3/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-AUX libstdc++-v3-open_missing_mode.patch 580 RMD160 eb4c35abea58a911efd859ba6514fb1697bcb3f4 SHA1 787b6e40d34e5cffe0df70fa4b2e86928da5357a SHA256 92aeb209304af3f5506aad3ddc0c89d9e231fc68f24ec5d20850af38a40317bf
-DIST gcc-3.3.6.tar.bz2 23972413 RMD160 b32c7a08c690857f0ac52dda3deb47cf5775d967 SHA1 2cc43978bb09af6c2ccfdf74797d10d7cc2596fb SHA256 1c1aa533c67e9da5e55ed4f5736258dc753466bd716bdae3fb88fb66e6ff1d7f
-EBUILD libstdc++-v3-3.3.6.ebuild 8412 RMD160 2812d54ecd1bfea4b27b035d68209960ad480e29 SHA1 cdfc4d51bb83505fbc03bdf29f0e24d85e2a32e0 SHA256 4e6ecd50d9cd20deffd0faea2a997323139926094b153187b9438dcb404e9744
-MISC ChangeLog 8397 RMD160 c8bceb93cc5b3808b66411682d83e782242673a3 SHA1 db49e9d0ae73cd8a66e59d472e561cfaeb5f4143 SHA256 e3a13c8c794763946d93f669cf7253d30d2f59bca3fd510bb0c48cde4a11cb58
diff --git a/sys-libs/libstdc++-v3/files/libstdc++-v3-open_missing_mode.patch b/sys-libs/libstdc++-v3/files/libstdc++-v3-open_missing_mode.patch
deleted file mode 100644
index 610fae2..0000000
--- a/sys-libs/libstdc++-v3/files/libstdc++-v3-open_missing_mode.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Nru /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/gcc-3.3.6/gcc/collect2.c /root/hardened/gcc-3.3.6/gcc/collect2.c
---- /gcc-3.3.6/gcc/collect2.c 2003-12-08 20:02:39.000000000 +0100
-+++ /gcc-3.3.6/gcc/collect2.c 2008-06-19 01:04:21.000000000 +0200
-@@ -1572,7 +1572,7 @@
- if (redir)
- {
- /* Open response file. */
-- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
-+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR);
-
- /* Duplicate the stdout and stderr file handles
- so they can be restored later. */
diff --git a/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6.ebuild b/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6.ebuild
deleted file mode 100644
index 85277ea..0000000
--- a/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6.ebuild
+++ /dev/null
@@ -1,294 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6.ebuild,v 1.19 2009/02/01 22:51:10 mr_bones_ Exp $
-
-inherit eutils flag-o-matic libtool gnuconfig versionator
-
-transform_known_flags() {
- declare setting
-
- # and on x86, we just need to filter the 3.4 specific amd64 -marchs
- replace-cpu-flags k8 athlon64 opteron x86-64
-
- # gcc 3.3 doesn't support -march=pentium-m
- replace-cpu-flags pentium-m pentium3m pentium3
-
- #GCC 3.3 does not understand G3, G4, G5 on ppc
- replace-cpu-flags G3 750
- replace-cpu-flags G4 7400
- replace-cpu-flags G5 7400
-}
-
-is_arch_allowed() {
- i386_processor_table="i386 i486 i586 pentium pentium-mmx winchip-c6 \
- winchip2 c3 i686 pentiumpro pentium2 pentium3 pentium4 prescott \
- nocona k6 k6-2 k6-3 athlon athlon-tbird x86-64 athlon-4 athlon-xp \
- athlon-mp"
-
- for proc in ${i386_processor_table} ; do
- [ "${proc}" == "${1}" ] && return 0
- done
-
- mips_processor_table="mips1 mips2 mips3 mips4 mips32 mips64 r3000 r2000 \
- r3900 r6000 r4000 vr4100 vr4111 vr4120 vr4300 r4400 r4600 orion \
- r4650 r8000 vr5000 vr5400 vr5500 4kc 4kp 5kc 20kc sr71000 sb1"
-
- for proc in ${mips_processor_table} ; do
- [ "${proc}" == "${1}" ] && return 0
- done
-
- rs6000_processor_table="common power power2 power3 power4 powerpc \
- powerpc64 rios rios1 rsc rsc1 rios2 rs64a 401 403 405 505 601 602 \
- 603 603e ec603e 604 604e 620 630 740 750 7400 7450 8540 801 821 823 \
- 860"
-
- for proc in ${rs6000_processor_table} ; do
- [ "${proc}" == "${1}" ] && return 0
- done
-
- return 1
-}
-
-do_filter_flags() {
- declare setting
-
- # In general gcc does not like optimization, and add -O2 where
- # it is safe. This is especially true for gcc 3.3 + 3.4
- replace-flags -O? -O2
-
- # gcc 3.3 doesn't support -mtune on numerous archs, so xgcc will fail
- setting="`get-flag mtune`"
- [ ! -z "${setting}" ] && filter-flags -mtune="${setting}"
-
- # in gcc 3.3 there is a bug on ppc64 where if -mcpu is used
- # the compiler incorrectly assumes the code you are about to build
- # is 32 bit
- use ppc64 && setting="`get-flag mcpu`"
- [ ! -z "${setting}" ] && filter-flags -mcpu="${setting}"
-
- # only allow the flags that we -know- are supported
- transform_known_flags
- setting="`get-flag march`"
- if [ ! -z "${setting}" ] ; then
- is_arch_allowed "${setting}" || filter-flags -march="${setting}"
- fi
- setting="`get-flag mcpu`"
- if [ ! -z "${setting}" ] ; then
- is_arch_allowed "${setting}" || filter-flags -mcpu="${setting}"
- fi
-
- # xgcc wont understand gcc 3.4 flags...
- filter-flags -fno-unit-at-a-time
- filter-flags -funit-at-a-time
- filter-flags -fweb
- filter-flags -fno-web
- filter-flags -mno-tls-direct-seg-refs
-
- # xgcc isnt patched with propolice
- filter-flags -fstack-protector-all
- filter-flags -fno-stack-protector-all
- filter-flags -fstack-protector
- filter-flags -fno-stack-protector
-
- # xgcc isnt patched with the gcc symbol visibility patch
- filter-flags -fvisibility-inlines-hidden
- filter-flags -fvisibility=hidden
-
- # ...sure, why not?
- strip-unsupported-flags
-
- strip-flags
-}
-
-S=${WORKDIR}/gcc-${PV}
-
-# Theoretical cross compiler support
-[ ! -n "${CCHOST}" ] && export CCHOST="${CHOST}"
-
-LOC="/usr"
-#MY_PV="`echo ${PV} | awk -F. '{ gsub(/_pre.*|_alpha.*/, ""); print $1 "." $2 }'`"
-#MY_PV_FULL="`echo ${PV} | awk '{ gsub(/_pre.*|_alpha.*/, ""); print $0 }'`"
-MY_PV="$(get_version_component_range 1-2)"
-MY_PV_FULL="$(get_version_component_range 1-3)"
-
-LIBPATH="${LOC}/lib/gcc-lib/${CCHOST}/${MY_PV_FULL}"
-BINPATH="${LOC}/${CCHOST}/gcc-bin/${MY_PV}"
-DATAPATH="${LOC}/share/gcc-data/${CCHOST}/${MY_PV}"
-# Dont install in /usr/include/g++-v3/, but in gcc internal directory.
-# We will handle /usr/include/g++-v3/ with gcc-config ...
-STDCXX_INCDIR="${LIBPATH}/include/g++-v${MY_PV/\.*/}"
-
-SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/gcc-${PV}/gcc-${PV}.tar.bz2"
-
-DESCRIPTION="Compatibility package for running binaries linked against a pre gcc 3.4 libstdc++"
-HOMEPAGE="http://gcc.gnu.org/libstdc++/"
-
-LICENSE="GPL-2 LGPL-2.1"
-
-KEYWORDS="amd64 hppa ~mips ppc -ppc64 sparc x86 ~x86-fbsd"
-IUSE="multilib nls nptl build"
-
-# 3.2.3 -> 3.3.x install .so.5, so lets slot to 5
-if [ "${CHOST}" == "${CCHOST}" ]
-then
- SLOT="5"
-else
- SLOT="${CCHOST}-5"
-fi
-
-DEPEND="virtual/libc
- !nptl? ( elibc_glibc? ( >=sys-libs/glibc-2.3.2-r3 ) )
- >=sys-devel/binutils-2.14.90.0.6-r1
- >=sys-devel/bison-1.875
- >=sys-devel/gcc-config-1.3.1
- >=sys-devel/gcc-3.3.3_pre20040130
- !build? ( >=sys-libs/ncurses-5.2-r2
- nls? ( sys-devel/gettext ) )"
-
-RDEPEND="virtual/libc
- !nptl? ( elibc_glibc? ( >=sys-libs/glibc-2.3.2-r3 ) )
- >=sys-devel/gcc-config-1.3.1
- >=sys-libs/zlib-1.1.4
- >=sys-apps/texinfo-4.2-r4
- !build? ( >=sys-libs/ncurses-5.2-r2 )"
-
-PDEPEND="sys-devel/gcc-config"
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
-
- epatch "${FILESDIR}"/libstdc++-v3-open_missing_mode.patch || die "epatch failed"
-
- # Fixup libtool to correctly generate .la files with portage
- elibtoolize --portage --shallow
-
- if (has_multilib_profile || use multilib) ; then
- sed -i \
- -e 's:\(MULTILIB_OSDIRNAMES = \).*:\1../lib64 ../lib32:' \
- ${S}/gcc/config/i386/t-linux64 \
- || die "sed failed!"
- fi
-
- # Misdesign in libstdc++ (Redhat)
- cp -pPR ${S}/libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
-
- cd ${S}; ./contrib/gcc_update --touch &> /dev/null
- gnuconfig_update
-}
-
-src_compile() {
-
- local myconf=
-
- if ! use nls || use build
- then
- myconf="${myconf} --disable-nls"
- else
- myconf="${myconf} --enable-nls --without-included-gettext"
- fi
-
- (has_multilib_profile || use multilib) || myconf="${myconf} --disable-multilib"
-
- do_filter_flags
- einfo "CFLAGS=\"${CFLAGS}\""
- einfo "CXXFLAGS=\"${CXXFLAGS}\""
-
- # Build in a separate build tree
- mkdir -p ${WORKDIR}/build
- cd ${WORKDIR}/build
-
- einfo "Configuring libstdc++..."
- addwrite "/dev/zero"
- ${S}/configure --prefix=${LOC} \
- --bindir=${BINPATH} \
- --includedir=${LIBPATH}/include \
- --datadir=${DATAPATH} \
- --mandir=${DATAPATH}/man \
- --infodir=${DATAPATH}/info \
- --enable-shared \
- --host=${CHOST} \
- --target=${CCHOST} \
- --with-system-zlib \
- --enable-languages=c++ \
- --enable-threads=posix \
- --enable-long-long \
- --disable-checking \
- --enable-cstdio=stdio \
- --enable-__cxa_atexit \
- --enable-version-specific-runtime-libs \
- --with-gxx-include-dir=${STDCXX_INCDIR} \
- --with-local-prefix=${LOC}/local \
- ${myconf} || die
-
- touch ${S}/gcc/c-gperf.h
-
- einfo "Compiling libstdc++..."
- S="${WORKDIR}/build" \
- emake all-target-libstdc++-v3 \
- LIBPATH="${LIBPATH}" \
- BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die
-}
-
-src_install() {
- local x=
-
- # Do allow symlinks in ${LOC}/lib/gcc-lib/${CHOST}/${PV}/include as
- # this can break the build.
- for x in ${WORKDIR}/build/gcc/include/*
- do
- if [ -L ${x} ]
- then
- rm -f ${x}
- continue
- fi
- done
- # Remove generated headers, as they can cause things to break
- # (ncurses, openssl, etc).
- for x in `find ${WORKDIR}/build/gcc/include/ -name '*.h'`
- do
- if grep -q 'It has been auto-edited by fixincludes from' ${x}
- then
- rm -f ${x}
- fi
- done
-
- einfo "Installing libstdc++..."
- # Do the 'make install' from the build directory
- cd ${WORKDIR}/build
- S="${WORKDIR}/build" \
- make prefix=${LOC} \
- bindir=${BINPATH} \
- includedir=${LIBPATH}/include \
- datadir=${DATAPATH} \
- mandir=${DATAPATH}/man \
- infodir=${DATAPATH}/info \
- DESTDIR="${D}" \
- LIBPATH="${LIBPATH}" \
- install-target-libstdc++-v3 || die
-
- # we'll move this into a directory we can put at the end of ld.so.conf
- # other than the normal versioned directory, so that it doesnt conflict
- # with gcc 3.3.3
- mkdir -p ${D}/${LOC}/lib/libstdc++-v3/
- mv ${D}/${LIBPATH}/lib* ${D}/${LOC}/lib/libstdc++-v3/
- # we dont want the headers...
- rm -rf ${D}/${LOC}/lib/gcc*
- # or locales...
- rm -rf ${D}/${LOC}/share
- # or anything other than the .so files, really.
- find ${D} | grep -e c++.la$ -e c++.a$ | xargs rm -f
- # we dont even want the un-versioned .so symlink, as it confuses some
- # apps and also causes others to link against the old libstdc++...
- rm ${D}/${LOC}/lib/libstdc++-v3/libstdc++.so
-
- # and it's much easier to just move around the result than it is to
- # configure libstdc++-v3 to use CONF_LIDIR
- if [ "$(get_libdir)" != "lib" ] ; then
- mv ${D}/${LOC}/lib ${D}/${LOC}/$(get_libdir)
- fi
-
- mkdir -p ${D}/etc/env.d/
- echo "LDPATH=\"${LOC}/$(get_libdir)/libstdc++-v3/\"" >> ${D}/etc/env.d/99libstdc++
-}