1 |
Introduces AUTOTOOLS_PRUNE_LIBTOOL_FILES variable which can be used to |
2 |
control the mode of pruning .la files done in |
3 |
autotools-utils_src_install. |
4 |
|
5 |
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=462874 |
6 |
--- |
7 |
gx86/eclass/autotools-utils.eclass | 20 +++++++++++++++++++- |
8 |
1 file changed, 19 insertions(+), 1 deletion(-) |
9 |
|
10 |
diff --git a/gx86/eclass/autotools-utils.eclass b/gx86/eclass/autotools-utils.eclass |
11 |
index c847fa0..3f0d762 100644 |
12 |
--- a/gx86/eclass/autotools-utils.eclass |
13 |
+++ b/gx86/eclass/autotools-utils.eclass |
14 |
@@ -184,6 +184,23 @@ EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test |
15 |
# PATCHES=( "${FILESDIR}"/${P}-mypatch.patch ) |
16 |
# @CODE |
17 |
|
18 |
+# @ECLASS-VARIABLE: AUTOTOOLS_PRUNE_LIBTOOL_FILES |
19 |
+# @DEFAULT-UNSET |
20 |
+# @DESCRIPTION: |
21 |
+# Sets the mode of pruning libtool files. The values correspond to |
22 |
+# prune_libtool_files parameters, with leading dashes stripped. |
23 |
+# |
24 |
+# Defaults to pruning the libtool files when static libraries are not |
25 |
+# installed or can be linked properly without them. Libtool files |
26 |
+# for modules (plugins) will be kept in case plugin loader needs them. |
27 |
+# |
28 |
+# If set to 'modules', the .la files for modules will be removed |
29 |
+# as well. This is often the preferred option. |
30 |
+# |
31 |
+# If set to 'all', all .la files will be removed unconditionally. This |
32 |
+# option is discouraged and shall be used only if 'modules' does not |
33 |
+# remove the files. |
34 |
+ |
35 |
# Determine using IN or OUT source build |
36 |
_check_build_dir() { |
37 |
: ${ECONF_SOURCE:=${S}} |
38 |
@@ -511,7 +528,8 @@ autotools-utils_src_install() { |
39 |
fi |
40 |
|
41 |
# Remove libtool files and unnecessary static libs |
42 |
- prune_libtool_files |
43 |
+ local prune_ltfiles=${AUTOTOOLS_PRUNE_LIBTOOL_FILES} |
44 |
+ prune_libtool_files ${prune_ltfiles:+--${prune_ltfiles}} |
45 |
} |
46 |
|
47 |
# @FUNCTION: autotools-utils_src_test |
48 |
-- |
49 |
1.8.1.5 |