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

Diff of /eclass/eutils.eclass

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

Revision 1.104 Revision 1.105
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.104 2004/09/17 21:19:49 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.105 2004/09/19 21:36:46 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.
115# 115#
116gen_usr_ldscript() { 116gen_usr_ldscript() {
117 # Just make sure it exists 117 # Just make sure it exists
118 dodir /usr/$(get_libdir) 118 dodir /usr/$(get_libdir)
119 119
120 cat > ${D}/usr/$(get_libdir)/$1 <<"END_LDSCRIPT" 120 cat > "${D}/usr/$(get_libdir)/$1" << END_LDSCRIPT
121/* GNU ld script 121/* GNU ld script
122 Because Gentoo have critical dynamic libraries 122 Because Gentoo have critical dynamic libraries
123 in /lib, and the static versions in /usr/lib, we 123 in /lib, and the static versions in /usr/lib, we
124 need to have a "fake" dynamic lib in /usr/lib, 124 need to have a "fake" dynamic lib in /usr/lib,
125 otherwise we run into linking problems. 125 otherwise we run into linking problems.
126 See bug #4411 on http://bugs.gentoo.org/ for 126 See bug #4411 on http://bugs.gentoo.org/ for
127 more info. */ 127 more info. */
128GROUP ( /$(get_libdir)/$1 )
128END_LDSCRIPT 129END_LDSCRIPT
129
130 echo "GROUP ( /$(get_libdir)/libxxx )" >> ${D}/usr/$(get_libdir)/$1
131 dosed "s:libxxx:$1:" /usr/$(get_libdir)/$1
132
133 return 0
134} 130}
135 131
136# Simple function to draw a line consisting of '=' the same length as $* 132# Simple function to draw a line consisting of '=' the same length as $*
137# 133#
138# <azarah@gentoo.org> (11 Nov 2002) 134# <azarah@gentoo.org> (11 Nov 2002)

Legend:
Removed from v.1.104  
changed lines
  Added in v.1.105

  ViewVC Help
Powered by ViewVC 1.1.20