summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-09-18 09:22:50 +0000
committerMike Frysinger <vapier@gentoo.org>2011-09-18 09:22:50 +0000
commit00a54d0ef843c13082bc1db38547f0c6e52d460d (patch)
treea41f89a29663f72846aef3657f9259d8e44488d1 /eclass
parentRemove entry for sys-apps/hal and app-misc/hal-info. (diff)
downloadgentoo-2-00a54d0ef843c13082bc1db38547f0c6e52d460d.tar.gz
gentoo-2-00a54d0ef843c13082bc1db38547f0c6e52d460d.tar.bz2
gentoo-2-00a54d0ef843c13082bc1db38547f0c6e52d460d.zip
add USE=static-libs support #379049 by Agostino Sarubbo
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-binutils.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index a529c84e62d6..f6073a6c621a 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.99 2011/08/11 02:17:50 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.100 2011/09/18 09:22:50 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
#
@@ -75,7 +75,7 @@ if version_is_at_least 2.18 ; then
else
LICENSE="|| ( GPL-2 LGPL-2 )"
fi
-IUSE="nls multitarget multislot test vanilla"
+IUSE="nls multitarget multislot static-libs test vanilla"
if use multislot ; then
SLOT="${CTARGET}-${BVER}"
elif is_cross ; then
@@ -234,6 +234,7 @@ toolchain-binutils_src_compile() {
--enable-64-bit-bfd \
--enable-shared \
--disable-werror \
+ $(use_enable static-libs static) \
${EXTRA_ECONF}
echo ./configure "$@"
"${S}"/configure "$@" || die
@@ -283,6 +284,7 @@ toolchain-binutils_src_install() {
cd "${MY_BUILDDIR}"
emake DESTDIR="${D}" tooldir="${LIBPATH}" install || die
rm -rf "${D}"/${LIBPATH}/bin
+ use static-libs || find "${D}" -name '*.la' -delete
# Newer versions of binutils get fancy with ${LIBPATH} #171905
cd "${D}"/${LIBPATH}