summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-04-01 09:16:07 +0000
committerMichał Górny <mgorny@gentoo.org>2013-04-01 09:16:07 +0000
commit4a24582ab9f671e036648583118d925a5d25d746 (patch)
tree83a6aec37f943d8708ca2a934d965fa02654b7d0 /eclass/autotools-utils.eclass
parentAdd missing dependency on x11-libs/libXft (diff)
downloadgentoo-2-4a24582ab9f671e036648583118d925a5d25d746.tar.gz
gentoo-2-4a24582ab9f671e036648583118d925a5d25d746.tar.bz2
gentoo-2-4a24582ab9f671e036648583118d925a5d25d746.zip
Support setting mode of prune_libtool_files through AUTOTOOLS_PRUNE_LIBTOOL_FILES.
Diffstat (limited to 'eclass/autotools-utils.eclass')
-rw-r--r--eclass/autotools-utils.eclass22
1 files changed, 20 insertions, 2 deletions
diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass
index c847fa0f68eb..dcb28b3fb44a 100644
--- a/eclass/autotools-utils.eclass
+++ b/eclass/autotools-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.63 2013/03/03 00:22:56 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.64 2013/04/01 09:16:07 mgorny Exp $
# @ECLASS: autotools-utils.eclass
# @MAINTAINER:
@@ -184,6 +184,23 @@ EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test
# PATCHES=( "${FILESDIR}"/${P}-mypatch.patch )
# @CODE
+# @ECLASS-VARIABLE: AUTOTOOLS_PRUNE_LIBTOOL_FILES
+# @DEFAULT-UNSET
+# @DESCRIPTION:
+# Sets the mode of pruning libtool files. The values correspond to
+# prune_libtool_files parameters, with leading dashes stripped.
+#
+# Defaults to pruning the libtool files when static libraries are not
+# installed or can be linked properly without them. Libtool files
+# for modules (plugins) will be kept in case plugin loader needs them.
+#
+# If set to 'modules', the .la files for modules will be removed
+# as well. This is often the preferred option.
+#
+# If set to 'all', all .la files will be removed unconditionally. This
+# option is discouraged and shall be used only if 'modules' does not
+# remove the files.
+
# Determine using IN or OUT source build
_check_build_dir() {
: ${ECONF_SOURCE:=${S}}
@@ -511,7 +528,8 @@ autotools-utils_src_install() {
fi
# Remove libtool files and unnecessary static libs
- prune_libtool_files
+ local prune_ltfiles=${AUTOTOOLS_PRUNE_LIBTOOL_FILES}
+ prune_libtool_files ${prune_ltfiles:+--${prune_ltfiles}}
}
# @FUNCTION: autotools-utils_src_test