/[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.86 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.86 2009/02/25 00:25:51 kumba 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
433 else 433 else
434 tlib=${lib} 434 tlib=${lib}
435 fi 435 fi
436 cat > "${D}/usr/${libdir}/${lib}" <<-END_LDSCRIPT 436 cat > "${D}/usr/${libdir}/${lib}" <<-END_LDSCRIPT
437 /* GNU ld script 437 /* GNU ld script
438 Since Gentoo has critical dynamic libraries 438 Since Gentoo has critical dynamic libraries in /lib, and the static versions
439 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
440 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
441 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.
442 443
443 See bug http://bugs.gentoo.org/4411 for more info. 444 See bug http://bugs.gentoo.org/4411 for more info.
444 */ 445 */
445 ${output_format} 446 ${output_format}
446 GROUP ( /${libdir}/${tlib} ) 447 GROUP ( /${libdir}/${tlib} )

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

  ViewVC Help
Powered by ViewVC 1.1.20