diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-04 18:46:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-04 18:46:55 +0000 |
commit | 73730e9010674fc670bf478529aab83aa9315f51 (patch) | |
tree | e4502fe8466a9e53e24d3abaa1afb26d722ec0bc /eclass/toolchain.eclass | |
parent | Version bump (diff) | |
download | gentoo-2-73730e9010674fc670bf478529aab83aa9315f51.tar.gz gentoo-2-73730e9010674fc670bf478529aab83aa9315f51.tar.bz2 gentoo-2-73730e9010674fc670bf478529aab83aa9315f51.zip |
revise versioned symlink creation #406765 #220149
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index a45e80832a78..cc0375f70195 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.523 2012/03/04 05:40:27 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.524 2012/03/04 18:46:55 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1500,13 +1500,15 @@ toolchain_src_install() { [[ -f ${x} ]] && mv ${x} ${CTARGET}-${x} if [[ -f ${CTARGET}-${x} ]] ; then - ln -sf ${CTARGET}-${x} ${x} + if ! is_crosscompile ; then + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} + fi # Create version-ed symlinks dosym ${BINPATH}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} - dosym ${BINPATH}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} fi if [[ -f ${CTARGET}-${x}-${GCC_CONFIG_VER} ]] ; then |