diff options
author | Michał Górny <mgorny@gentoo.org> | 2011-09-16 15:38:54 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2011-09-16 15:38:54 +0000 |
commit | cc480e3cf9fb64f443ab95307a475882e3413be9 (patch) | |
tree | 0f54ab40a41ff9dfec205c532dc0770f253b0ef5 /eclass | |
parent | Remove static libs covered by .pc files as well. (diff) | |
download | gentoo-2-cc480e3cf9fb64f443ab95307a475882e3413be9.tar.gz gentoo-2-cc480e3cf9fb64f443ab95307a475882e3413be9.tar.bz2 gentoo-2-cc480e3cf9fb64f443ab95307a475882e3413be9.zip |
Explain .la removal reasons in output.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/autotools-utils.eclass | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass index 5dc26f3495b4..6147ffbc1c64 100644 --- a/eclass/autotools-utils.eclass +++ b/eclass/autotools-utils.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/autotools-utils.eclass,v 1.19 2011/09/16 15:38:40 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.20 2011/09/16 15:38:54 mgorny Exp $ # @ECLASS: autotools-utils.eclass # @MAINTAINER: @@ -186,16 +186,17 @@ remove_libtool_files() { # - they are covered by a .pc file already, # - they don't provide any new information (no libs & no flags). local removing - if [[ ${removing_all} ]]; then removing=1 - elif [[ ! -f ${archivefile} ]]; then removing=1 - elif has "$(basename "${f}")" "${pc_libs[@]}"; then removing=1 + if [[ ${removing_all} ]]; then removing='forced' + elif [[ ! -f ${archivefile} ]]; then removing='no static archive' + elif has "$(basename "${f}")" "${pc_libs[@]}"; then + removing='covered by .pc' elif [[ ! $(sed -n -e \ "s/^\(dependency_libs\|inherited_linker_flags\)='\(.*\)'$/\2/p" \ - "${f}") ]]; then removing=1 + "${f}") ]]; then removing='no libs & flags' fi if [[ ${removing} ]]; then - einfo "Removing unnecessary ${f#${D%/}}" + einfo "Removing unnecessary ${f#${D%/}} (${removing})" rm -f "${f}" || die fi done |