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

Diff of /eclass/eutils.eclass

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

Revision 1.94 Revision 1.95
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.94 2004/08/13 15:39:40 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.95 2004/08/15 03:25:19 lv 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.
33# to point to the latest version of the library present. 33# to point to the latest version of the library present.
34# 34#
35# <azarah@gentoo.org> (26 Oct 2002) 35# <azarah@gentoo.org> (26 Oct 2002)
36# 36#
37gen_usr_ldscript() { 37gen_usr_ldscript() {
38 # this adds support for installing to lib64/lib32. since only portage
39 # 2.0.51 will have this functionality supported in dolib and friends,
40 # and since it isnt expected that many profiles will define it, we need
41 # to make this variable default to lib.
42 [ -z "${CONF_LIBDIR}" ] && CONF_LIBDIR="lib"
38 43
39 # Just make sure it exists 44 # Just make sure it exists
40 dodir /usr/lib 45 dodir /usr/${CONF_LIBDIR}
41 46
42 cat > ${D}/usr/lib/$1 <<"END_LDSCRIPT" 47 cat > ${D}/usr/${CONF_LIBDIR}/$1 <<"END_LDSCRIPT"
43/* GNU ld script 48/* GNU ld script
44 Because Gentoo have critical dynamic libraries 49 Because Gentoo have critical dynamic libraries
45 in /lib, and the static versions in /usr/lib, we 50 in /lib, and the static versions in /usr/lib, we
46 need to have a "fake" dynamic lib in /usr/lib, 51 need to have a "fake" dynamic lib in /usr/lib,
47 otherwise we run into linking problems. 52 otherwise we run into linking problems.
48 See bug #4411 on http://bugs.gentoo.org/ for 53 See bug #4411 on http://bugs.gentoo.org/ for
49 more info. */ 54 more info. */
50GROUP ( /lib/libxxx )
51END_LDSCRIPT 55END_LDSCRIPT
52 56
57 echo "GROUP ( /${CONF_LIBDIR}/libxxx )" >> ${D}/usr/${CONF_LIBDIR}/$1
53 dosed "s:libxxx:$1:" /usr/lib/$1 58 dosed "s:libxxx:$1:" /usr/${CONF_LIBDIR}/$1
54 59
55 return 0 60 return 0
56} 61}
57 62
58# Simple function to draw a line consisting of '=' the same length as $* 63# Simple function to draw a line consisting of '=' the same length as $*

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95

  ViewVC Help
Powered by ViewVC 1.1.20