summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2006-07-01 20:41:12 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2006-07-01 20:41:12 +0000
commite4612d50430f24112ef97bc0995cb209cf93a8d5 (patch)
treec1168b7d2e6f54051c48be0e4f9f12b225e04068 /eclass
parentAdd missing plugins (diff)
downloadgentoo-2-e4612d50430f24112ef97bc0995cb209cf93a8d5.tar.gz
gentoo-2-e4612d50430f24112ef97bc0995cb209cf93a8d5.tar.bz2
gentoo-2-e4612d50430f24112ef97bc0995cb209cf93a8d5.zip
Add multilib intelligence for removing .la files for drivers and modules.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/x-modular.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/x-modular.eclass b/eclass/x-modular.eclass
index 2499214ff564..0ed5c0c049b5 100644
--- a/eclass/x-modular.eclass
+++ b/eclass/x-modular.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/x-modular.eclass,v 1.69 2006/07/01 06:46:52 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.70 2006/07/01 20:41:12 spyderous Exp $
#
# Author: Donnie Berkholz <spyderous@gentoo.org>
#
@@ -27,7 +27,7 @@
EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
-inherit eutils libtool toolchain-funcs flag-o-matic autotools
+inherit eutils libtool multilib toolchain-funcs flag-o-matic autotools
# Directory prefix to use for everything
XDIR="/usr"
@@ -345,8 +345,8 @@ x-modular_src_install() {
prepalldocs
# Don't install libtool archives for server modules
- if [[ -e ${D}/usr/lib/xorg/modules ]]; then
- find ${D}/usr/lib/xorg/modules -name '*.la' \
+ if [[ -e ${D}/usr/$(get_libdir)/xorg/modules ]]; then
+ find ${D}/usr/$(get_libdir)/xorg/modules -name '*.la' \
| xargs rm -f
fi