summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-23 04:30:51 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-23 04:30:51 +0000
commit432a98e5da4fe2657286a152919721e530cd76ef (patch)
tree23cedea9188dd8eb10bbf175132f77508830dfa8 /eclass
parentmarked stable on x86 (Manifest recommit) (diff)
downloadgentoo-2-432a98e5da4fe2657286a152919721e530cd76ef.tar.gz
gentoo-2-432a98e5da4fe2657286a152919721e530cd76ef.tar.bz2
gentoo-2-432a98e5da4fe2657286a152919721e530cd76ef.zip
tweak gen_usr_ldscript to handle more than 1 param at a time
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass28
1 files changed, 16 insertions, 12 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index b959187d2d30..24d8e324e3b2 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.160 2005/03/22 17:33:13 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.161 2005/03/23 04:30:51 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -111,17 +111,21 @@ gen_usr_ldscript() {
# Just make sure it exists
dodir /usr/${libdir}
- cat > "${D}/usr/${libdir}/${1}" << END_LDSCRIPT
-/* GNU ld script
- Because Gentoo have critical dynamic libraries
- in /lib, and the static versions in /usr/lib, we
- need to have a "fake" dynamic lib in /usr/lib,
- otherwise we run into linking problems.
- See bug #4411 on http://bugs.gentoo.org/ for
- more info. */
-GROUP ( /${libdir}/${1} )
-END_LDSCRIPT
- fperms a+x "/usr/${libdir}/${1}"
+ while [[ $# -gt 0 ]] ; do
+ cat > "${D}/usr/${libdir}/$1" <<-END_LDSCRIPT
+ /* GNU ld script
+ Since Gentoo has critical dynamic libraries
+ in /lib, and the static versions in /usr/lib,
+ we need to have a "fake" dynamic lib in /usr/lib,
+ otherwise we run into linking problems.
+
+ See bug http://bugs.gentoo.org/4411 for more info.
+ */
+ GROUP ( /${libdir}/$1 )
+ END_LDSCRIPT
+ fperms a+x "/usr/${libdir}/$1"
+ shift
+ done
}
# Simple function to draw a line consisting of '=' the same length as $*