/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

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

Revision 1.160 Revision 1.161
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/eutils.eclass,v 1.160 2005/03/22 17:33:13 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.161 2005/03/23 04:30:51 vapier Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
109gen_usr_ldscript() { 109gen_usr_ldscript() {
110 local libdir="$(get_libdir)" 110 local libdir="$(get_libdir)"
111 # Just make sure it exists 111 # Just make sure it exists
112 dodir /usr/${libdir} 112 dodir /usr/${libdir}
113 113
114 while [[ $# -gt 0 ]] ; do
114 cat > "${D}/usr/${libdir}/${1}" << END_LDSCRIPT 115 cat > "${D}/usr/${libdir}/$1" <<-END_LDSCRIPT
115/* GNU ld script 116 /* GNU ld script
116 Because Gentoo have critical dynamic libraries 117 Since Gentoo has critical dynamic libraries
117 in /lib, and the static versions in /usr/lib, we 118 in /lib, and the static versions in /usr/lib,
118 need to have a "fake" dynamic lib in /usr/lib, 119 we need to have a "fake" dynamic lib in /usr/lib,
119 otherwise we run into linking problems. 120 otherwise we run into linking problems.
120 See bug #4411 on http://bugs.gentoo.org/ for 121
121 more info. */ 122 See bug http://bugs.gentoo.org/4411 for more info.
123 */
122GROUP ( /${libdir}/${1} ) 124 GROUP ( /${libdir}/$1 )
123END_LDSCRIPT 125 END_LDSCRIPT
124 fperms a+x "/usr/${libdir}/${1}" 126 fperms a+x "/usr/${libdir}/$1"
127 shift
128 done
125} 129}
126 130
127# Simple function to draw a line consisting of '=' the same length as $* 131# Simple function to draw a line consisting of '=' the same length as $*
128# 132#
129# <azarah@gentoo.org> (11 Nov 2002) 133# <azarah@gentoo.org> (11 Nov 2002)

Legend:
Removed from v.1.160  
changed lines
  Added in v.1.161

  ViewVC Help
Powered by ViewVC 1.1.20