| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.91 2009/05/24 07:25:48 grobian Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.92 2009/08/15 15:11:17 grobian Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: toolchain-funcs.eclass |
5 | # @ECLASS: toolchain-funcs.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Toolchain Ninjas <toolchain@gentoo.org> |
7 | # Toolchain Ninjas <toolchain@gentoo.org> |
| 8 | # @BLURB: functions to query common info about the toolchain |
8 | # @BLURB: functions to query common info about the toolchain |
| … | |
… | |
| 455 | [[ -z ${tlib} ]] && die "unable to read install_name from ${lib}" |
455 | [[ -z ${tlib} ]] && die "unable to read install_name from ${lib}" |
| 456 | tlib=${tlib##*/} |
456 | tlib=${tlib##*/} |
| 457 | |
457 | |
| 458 | if ${auto} ; then |
458 | if ${auto} ; then |
| 459 | mv "${ED}"/usr/${libdir}/${lib%${suffix}}.*${suffix#.} "${ED}"/${libdir}/ || die |
459 | mv "${ED}"/usr/${libdir}/${lib%${suffix}}.*${suffix#.} "${ED}"/${libdir}/ || die |
|
|
460 | # some install_names are funky: they encode a version |
|
|
461 | if [[ ${tlib} != ${lib%${suffix}}.*${suffix#.} ]] ; then |
|
|
462 | mv "${ED}"/usr/${libdir}/${tlib%${suffix}}.*${suffix#.} "${ED}"/${libdir}/ || die |
|
|
463 | fi |
| 460 | rm -f "${ED}"/${libdir}/${lib} |
464 | rm -f "${ED}"/${libdir}/${lib} |
| 461 | fi |
465 | fi |
| 462 | |
466 | |
| 463 | # Mach-O files have an id, which is like a soname, it tells how |
467 | # Mach-O files have an id, which is like a soname, it tells how |
| 464 | # another object linking against this lib should reference it. |
468 | # another object linking against this lib should reference it. |