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

Diff of /eclass/eutils.eclass

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

Revision 1.162 Revision 1.163
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.162 2005/03/23 12:46:11 ka0ttic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.163 2005/03/26 06:33:16 eradicator 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 for lib in "${@}" ; do
115 cat > "${D}/usr/${libdir}/$1" <<-END_LDSCRIPT 115 cat > "${D}/usr/${libdir}/${lib}" <<-END_LDSCRIPT
116 /* GNU ld script 116 /* GNU ld script
117 Since Gentoo has critical dynamic libraries 117 Since Gentoo has critical dynamic libraries
118 in /lib, and the static versions in /usr/lib, 118 in /lib, and the static versions in /usr/lib,
119 we need to have a "fake" dynamic lib in /usr/lib, 119 we need to have a "fake" dynamic lib in /usr/lib,
120 otherwise we run into linking problems. 120 otherwise we run into linking problems.
121 121
122 See bug http://bugs.gentoo.org/4411 for more info. 122 See bug http://bugs.gentoo.org/4411 for more info.
123 */ 123 */
124 GROUP ( /${libdir}/$1 ) 124 GROUP ( /${libdir}/${lib} )
125 END_LDSCRIPT 125 END_LDSCRIPT
126 fperms a+x "/usr/${libdir}/$1" 126 fperms a+x "/usr/${libdir}/${lib}"
127 shift
128 done 127 done
129} 128}
130 129
131# Simple function to draw a line consisting of '=' the same length as $* 130# Simple function to draw a line consisting of '=' the same length as $*
132# 131#

Legend:
Removed from v.1.162  
changed lines
  Added in v.1.163

  ViewVC Help
Powered by ViewVC 1.1.20