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
commit4f82ded46248b98b8d2dbd0a9aab684558e82d03 (patch)
treef156608e91f49261c384d7b36e40660bcab3043f /eclass
parentmarked stable on x86 (diff)
downloadhistorical-4f82ded46248b98b8d2dbd0a9aab684558e82d03.tar.gz
historical-4f82ded46248b98b8d2dbd0a9aab684558e82d03.tar.bz2
historical-4f82ded46248b98b8d2dbd0a9aab684558e82d03.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 $*