/[gentoo-x86]/eclass/toolchain-funcs.eclass
Gentoo

Diff of /eclass/toolchain-funcs.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.85 Revision 1.87
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.85 2009/01/27 23:35:04 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.87 2009/03/01 08:09:44 vapier 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
70tc-getNM() { tc-getPROG NM nm "$@"; } 70tc-getNM() { tc-getPROG NM nm "$@"; }
71# @FUNCTION: tc-getRANLIB 71# @FUNCTION: tc-getRANLIB
72# @USAGE: [toolchain prefix] 72# @USAGE: [toolchain prefix]
73# @RETURN: name of the archiver indexer 73# @RETURN: name of the archiver indexer
74tc-getRANLIB() { tc-getPROG RANLIB ranlib "$@"; } 74tc-getRANLIB() { tc-getPROG RANLIB ranlib "$@"; }
75# @FUNCTION: tc-getOBJCOPY
76# @USAGE: [toolchain prefix]
77# @RETURN: name of the object copier
78tc-getOBJCOPY() { tc-getPROG OBJCOPY objcopy "$@"; }
75# @FUNCTION: tc-getF77 79# @FUNCTION: tc-getF77
76# @USAGE: [toolchain prefix] 80# @USAGE: [toolchain prefix]
77# @RETURN: name of the Fortran 77 compiler 81# @RETURN: name of the Fortran 77 compiler
78tc-getF77() { tc-getPROG F77 f77 "$@"; } 82tc-getF77() { tc-getPROG F77 f77 "$@"; }
79# @FUNCTION: tc-getFC 83# @FUNCTION: tc-getFC
429 else 433 else
430 tlib=${lib} 434 tlib=${lib}
431 fi 435 fi
432 cat > "${D}/usr/${libdir}/${lib}" <<-END_LDSCRIPT 436 cat > "${D}/usr/${libdir}/${lib}" <<-END_LDSCRIPT
433 /* GNU ld script 437 /* GNU ld script
434 Since Gentoo has critical dynamic libraries 438 Since Gentoo has critical dynamic libraries in /lib, and the static versions
435 in /lib, and the static versions in /usr/lib, 439 in /usr/lib, we need to have a "fake" dynamic lib in /usr/lib, otherwise we
436 we need to have a "fake" dynamic lib in /usr/lib, 440 run into linking problems. This "fake" dynamic lib is a linker script that
437 otherwise we run into linking problems. 441 redirects the linker to the real lib. And yes, this works in the cross-
442 compiling scenario as the sysroot-ed linker will prepend the real path.
438 443
439 See bug http://bugs.gentoo.org/4411 for more info. 444 See bug http://bugs.gentoo.org/4411 for more info.
440 */ 445 */
441 ${output_format} 446 ${output_format}
442 GROUP ( /${libdir}/${tlib} ) 447 GROUP ( /${libdir}/${tlib} )

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.87

  ViewVC Help
Powered by ViewVC 1.1.20