From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass |
Date: | Sun, 04 Mar 2012 18:47:07 |
Message-Id: | 20120304184656.152632004B@flycatcher.gentoo.org |
1 | vapier 12/03/04 18:46:56 |
2 | |
3 | Modified: toolchain.eclass |
4 | Log: |
5 | revise versioned symlink creation #406765 #220149 |
6 | |
7 | Revision Changes Path |
8 | 1.524 eclass/toolchain.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.524&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.524&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.523&r2=1.524 |
13 | |
14 | Index: toolchain.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v |
17 | retrieving revision 1.523 |
18 | retrieving revision 1.524 |
19 | diff -u -r1.523 -r1.524 |
20 | --- toolchain.eclass 4 Mar 2012 05:40:27 -0000 1.523 |
21 | +++ toolchain.eclass 4 Mar 2012 18:46:55 -0000 1.524 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2012 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.523 2012/03/04 05:40:27 vapier Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.524 2012/03/04 18:46:55 vapier Exp $ |
27 | # |
28 | # Maintainer: Toolchain Ninjas <toolchain@g.o> |
29 | |
30 | @@ -1500,13 +1500,15 @@ |
31 | [[ -f ${x} ]] && mv ${x} ${CTARGET}-${x} |
32 | |
33 | if [[ -f ${CTARGET}-${x} ]] ; then |
34 | - ln -sf ${CTARGET}-${x} ${x} |
35 | + if ! is_crosscompile ; then |
36 | + ln -sf ${CTARGET}-${x} ${x} |
37 | + dosym ${BINPATH}/${CTARGET}-${x} \ |
38 | + /usr/bin/${x}-${GCC_CONFIG_VER} |
39 | + fi |
40 | |
41 | # Create version-ed symlinks |
42 | dosym ${BINPATH}/${CTARGET}-${x} \ |
43 | /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} |
44 | - dosym ${BINPATH}/${CTARGET}-${x} \ |
45 | - /usr/bin/${x}-${GCC_CONFIG_VER} |
46 | fi |
47 | |
48 | if [[ -f ${CTARGET}-${x}-${GCC_CONFIG_VER} ]] ; then |