diff options
author | Benda Xu <heroxbd@gentoo.org> | 2016-07-21 11:16:13 +0900 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2016-07-21 11:16:13 +0900 |
commit | f237ba70585b97ba8e45882bb2f5926323b3e658 (patch) | |
tree | 2dcf7d3434b3b1d593b841faaba802010fba99e9 | |
parent | app-shells/bash: use prefix.eclass in gx86. (diff) | |
download | heroxbd-f237ba70585b97ba8e45882bb2f5926323b3e658.tar.gz heroxbd-f237ba70585b97ba8e45882bb2f5926323b3e658.tar.bz2 heroxbd-f237ba70585b97ba8e45882bb2f5926323b3e658.zip |
toolchain.eclass: a couple of ED fixes.
-rw-r--r-- | eclass/toolchain.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index b6df2da..5a4c92d 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1711,7 +1711,7 @@ toolchain_src_install() { # Now do the fun stripping stuff env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${BINPATH}" is_crosscompile && \ - env RESTRICT="" CHOST=${CHOST} prepstrip "${D}/${HOSTLIBPATH}" + env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${HOSTLIBPATH}" env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}" # gcc used to install helper binaries in lib/ but then moved to libexec/ [[ -d ${D}${PREFIX}/libexec/gcc ]] && \ @@ -1719,7 +1719,7 @@ toolchain_src_install() { cd "${S}" if is_crosscompile; then - rm -rf "${D}"/usr/share/{man,info} + rm -rf "${ED}"usr/share/{man,info} rm -rf "${D}"${DATAPATH}/{man,info} else if tc_version_is_at_least 3.0 ; then @@ -1729,10 +1729,10 @@ toolchain_src_install() { fi fi has noinfo ${FEATURES} \ - && rm -r "${D}/${DATAPATH}"/info \ + && rm -r "${D}${DATAPATH}"/info \ || prepinfo "${DATAPATH#${EPREFIX}}" has noman ${FEATURES} \ - && rm -r "${D}/${DATAPATH}"/man \ + && rm -r "${D}${DATAPATH}"/man \ || prepman "${DATAPATH#${EPREFIX}}" fi # prune empty dirs left behind @@ -1834,7 +1834,7 @@ gcc_movelibs() { # code to run on the target. if tc_version_is_at_least 5 && is_crosscompile ; then dodir "${HOSTLIBPATH#${EPREFIX}}" - mv "${ED}"/usr/$(get_libdir)/libcc1* "${D}${HOSTLIBPATH}" || die + mv "${ED}"usr/$(get_libdir)/libcc1* "${D}${HOSTLIBPATH}" || die fi # For all the libs that are built for CTARGET, move them into the |