From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 854BB138010 for ; Tue, 26 Mar 2013 19:21:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9A95E07F4; Tue, 26 Mar 2013 19:21:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6864E07C6 for ; Tue, 26 Mar 2013 19:21:41 +0000 (UTC) Received: from pomiocik.lan (77-255-217-157.adsl.inetia.pl [77.255.217.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id D119333D3D6; Tue, 26 Mar 2013 19:21:39 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH] autotools-utils: support setting prune_libtool_files mode globally. Date: Tue, 26 Mar 2013 20:22:21 +0100 Message-Id: <1364325741-31042-1-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.8.1.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 025266df-8299-4c72-ab65-c2b027ed151e X-Archives-Hash: 8bdcdd478a526c12b0ac33c0aa7e82d8 Introduces AUTOTOOLS_PRUNE_LIBTOOL_FILES variable which can be used to control the mode of pruning .la files done in autotools-utils_src_install. Fixes: https://bugs.gentoo.org/show_bug.cgi?id=462874 --- gx86/eclass/autotools-utils.eclass | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/gx86/eclass/autotools-utils.eclass b/gx86/eclass/autotools-utils.eclass index c847fa0..3f0d762 100644 --- a/gx86/eclass/autotools-utils.eclass +++ b/gx86/eclass/autotools-utils.eclass @@ -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 -- 1.8.1.5