diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-03-24 07:11:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-03-24 07:11:40 +0000 |
commit | 7290365d322b7d79d6062e6ade3fcb36636f77d0 (patch) | |
tree | abdedaf51a14530c0773408354f7f7bcd7f57606 /eclass/toolchain-binutils.eclass | |
parent | add new function append-cppflags and support CPPFLAGS a little better (diff) | |
download | gentoo-2-7290365d322b7d79d6062e6ade3fcb36636f77d0.tar.gz gentoo-2-7290365d322b7d79d6062e6ade3fcb36636f77d0.tar.bz2 gentoo-2-7290365d322b7d79d6062e6ade3fcb36636f77d0.zip |
use emake in src_install, drop prepman since newer portage is smarter about finding non-standard man dirs, and handle newer binutils method of installing into funky multilib dirs #171905
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r-- | eclass/toolchain-binutils.eclass | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass index 561d8847986e..c981a2d3a516 100644 --- a/eclass/toolchain-binutils.eclass +++ b/eclass/toolchain-binutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.71 2007/03/04 21:03:58 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.72 2007/03/24 07:11:40 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> # @@ -243,9 +243,17 @@ toolchain-binutils_src_install() { local x d cd "${MY_BUILDDIR}" - make DESTDIR="${D}" tooldir="${LIBPATH}" install || die + emake DESTDIR="${D}" tooldir="${LIBPATH}" install || die rm -rf "${D}"/${LIBPATH}/bin + # Newer versions of binutils get fancy with ${LIBPATH} #171905 + cd "${D}"/${LIBPATH} + for d in ../* ; do + [[ ${d} == ../${BVER} ]] && continue + mv ${d}/* . || die + rmdir ${d} || die + done + # Now we collect everything intp the proper SLOT-ed dirs # When something is built to cross-compile, it installs into # /usr/$CHOST/ by default ... we have to 'fix' that :) @@ -267,7 +275,6 @@ toolchain-binutils_src_install() { mv "${D}"/${LIBPATH}/lib/* "${D}"/${LIBPATH}/ rm -r "${D}"/${LIBPATH}/lib fi - prepman ${DATAPATH} # Insert elf2flt where appropriate if [[ -x ${WORKDIR}/elf2flt-${ELF2FLT_VER}/elf2flt ]] ; then |