summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-30 04:01:31 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-30 04:01:31 +0000
commitf3fc1187b4b27916170b246afb973263d082ef31 (patch)
tree78f626f2cb1316f3ff5073f71b747e93cc1df49f
parentAdded ~amd64 keyword (bug #110369). (diff)
downloadgentoo-2-f3fc1187b4b27916170b246afb973263d082ef31.tar.gz
gentoo-2-f3fc1187b4b27916170b246afb973263d082ef31.tar.bz2
gentoo-2-f3fc1187b4b27916170b246afb973263d082ef31.zip
make sure we always cleanse libiberty.a
-rw-r--r--eclass/toolchain.eclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index d49744f61330..9541a6ddaa20 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.220 2005/11/19 07:13:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.221 2005/11/30 04:01:31 vapier Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -1515,6 +1515,10 @@ gcc-compiler_src_install() {
env RESTRICT="" STRIP=${CHOST}-strip prepstrip "${D}${BINPATH}" "${D}${LIBEXECPATH}"
env RESTRICT="" STRIP=${CTARGET}-strip prepstrip "${D}${LIBPATH}"
+ # This one comes with binutils
+ find "${D}" -name libiberty.a -exec rm -f {} \;
+
+ # Basic sanity check
is_crosscompile || [[ -r ${D}${BINPATH}/gcc ]] || die "gcc not found in ${D}"
dodir /lib /usr/bin
@@ -1646,9 +1650,6 @@ gcc-compiler_src_install() {
# when installing gcc, it dumps internal libraries into /usr/lib
# instead of the private gcc lib path
gcc_movelibs() {
- # This one comes with binutils
- find "${D}" -name libiberty.a -exec rm -f {} \;
-
# XXX: This breaks when cross-compiling a native compiler (CBUILD != CHOST)
local multiarg