diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-04-22 02:27:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-04-22 02:27:56 +0000 |
commit | be8fe9e0e874587ad5c1af9d9943f7d5fd84089e (patch) | |
tree | 80cbb21cd72dce0dbcc6d9f6aafcd31b769260da /sys-devel | |
parent | Rewrote most of the code, organized into functions, fixed speed issues involv... (diff) | |
download | gentoo-2-be8fe9e0e874587ad5c1af9d9943f7d5fd84089e.tar.gz gentoo-2-be8fe9e0e874587ad5c1af9d9943f7d5fd84089e.tar.bz2 gentoo-2-be8fe9e0e874587ad5c1af9d9943f7d5fd84089e.zip |
fix flag filtering and lets try to get rid of gcc-2.95.3-r7
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gcc/gcc-2.95.3-r7.ebuild | 8 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-2.95.3-r8.ebuild | 20 |
2 files changed, 10 insertions, 18 deletions
diff --git a/sys-devel/gcc/gcc-2.95.3-r7.ebuild b/sys-devel/gcc/gcc-2.95.3-r7.ebuild index 6de968762320..2dbe0a5f8ed9 100644 --- a/sys-devel/gcc/gcc-2.95.3-r7.ebuild +++ b/sys-devel/gcc/gcc-2.95.3-r7.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.3-r7.ebuild,v 1.21 2004/02/26 20:36:49 pappy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.3-r7.ebuild,v 1.22 2004/04/22 02:27:56 vapier Exp $ IUSE="nls static build" -inherit eutils +inherit eutils flag-o-matic TV="4.0" SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${P}.tar.gz" @@ -85,9 +85,7 @@ src_compile() { fi # gcc does not like optimization - - export CFLAGS="${CFLAGS/-O?/}" - export CXXFLAGS="${CXXFLAGS/-O?/}" + filter-flags -O? ${S}/configure --prefix=${LOC} \ --mandir=${LOC}/share/man \ diff --git a/sys-devel/gcc/gcc-2.95.3-r8.ebuild b/sys-devel/gcc/gcc-2.95.3-r8.ebuild index 4189efac38ed..52dbcd407c39 100644 --- a/sys-devel/gcc/gcc-2.95.3-r8.ebuild +++ b/sys-devel/gcc/gcc-2.95.3-r8.ebuild @@ -1,14 +1,9 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.3-r8.ebuild,v 1.23 2004/02/26 20:36:49 pappy Exp $ - -IUSE="static nls bootstrap java build" +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.3-r8.ebuild,v 1.24 2004/04/22 02:27:56 vapier Exp $ inherit eutils flag-o-matic gcc -# Compile problems with these (bug #6641 among others)... -filter-flags "-fno-exceptions -fomit-frame-pointer -ggdb" - # Recently there has been a lot of stability problem in Gentoo-land. Many # things can be the cause to this, but I believe that it is due to gcc3 # still having issues with optimizations, or with it not filtering bad @@ -49,13 +44,13 @@ DATAPATH="${LOC}/share/gcc-data/${CCHOST}/${MY_PV}" # We will handle /usr/include/g++/ with gcc-config ... STDCXX_INCDIR="${LIBPATH}/include/g++" -S="${WORKDIR}/${P}" DESCRIPTION="Modern C/C++ compiler written by the GNU people" -SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${P}.tar.gz" HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" +SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${P}.tar.gz" LICENSE="GPL-2 LGPL-2.1" -KEYWORDS="x86 ~ppc ~sparc ~alpha " +KEYWORDS="x86 ppc sparc alpha" +IUSE="static nls bootstrap java build" # Ok, this is a hairy one again, but lets assume that we # are not cross compiling, than we want SLOT to only contain @@ -79,7 +74,6 @@ RDEPEND="virtual/glibc >=sys-apps/texinfo-4.2-r4 !build? ( >=sys-libs/ncurses-5.2-r2 )" - # Hack used to patch Makefiles to install into the build dir FAKE_ROOT="" @@ -153,8 +147,9 @@ src_compile() { # In general gcc does not like optimization, and add -O2 where # it is safe. - export CFLAGS="${CFLAGS//-O?}" - export CXXFLAGS="${CXXFLAGS//-O?}" + filter-flags -O? + # Compile problems with these (bug #6641 among others)... + filter-flags -fno-exceptions -fomit-frame-pointer -ggdb # Build in a separate build tree mkdir -p ${WORKDIR}/build @@ -324,4 +319,3 @@ pkg_postinst() { gcc-config --use-portage-chost ${CCHOST}-${MY_PV_FULL} fi } - |