diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-03-02 17:03:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-03-02 17:03:44 +0000 |
commit | 03f7bb72102fe65d9f2f813826ea49cf8801f2ca (patch) | |
tree | cc47624114ddc3d6cbeb08b7355e77a5f2aa83fa /eclass/toolchain.eclass | |
parent | cleanups (diff) | |
download | gentoo-2-03f7bb72102fe65d9f2f813826ea49cf8801f2ca.tar.gz gentoo-2-03f7bb72102fe65d9f2f813826ea49cf8801f2ca.tar.bz2 gentoo-2-03f7bb72102fe65d9f2f813826ea49cf8801f2ca.zip |
do stripping ourselves
Diffstat (limited to 'eclass/toolchain.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 08d4d6d80ad2..bd35b79686b6 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,9 +1,10 @@ # 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.114 2005/03/01 03:06:47 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.115 2005/03/02 17:03:44 vapier Exp $ HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" LICENSE="GPL-2 LGPL-2.1" +RESTRICT="nostrip" #---->> eclass stuff <<---- inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib @@ -1260,6 +1261,9 @@ gcc-compiler_src_install() { cd ${WORKDIR}/build S=${WORKDIR}/build \ make DESTDIR="${D}" install || die + # Now do the fun stripping stuff + env -uRESTRICT STRIP=${CHOST}-strip prepstrip "${D}/${BINPATH}" "${D}/usr/libexec" + env -uRESTRICT STRIP=${CTARGET}-strip prepstrip "${D}/${LIBPATH}" is_crosscompile || [[ -r ${D}${BINPATH}/gcc ]] || die "gcc not found in ${D}" @@ -1354,8 +1358,8 @@ gcc-compiler_src_install() { cd ${S} if use build || is_crosscompile; then - rm -r "${D}"/usr/share/{man,info} - rm -r "${D}"${DATAPATH}/{man,info} + rm -rf "${D}"/usr/share/{man,info} + rm -rf "${D}"${DATAPATH}/{man,info} else prepman ${DATAPATH} prepinfo ${DATAPATH} |