diff options
author | Michał Górny <mgorny@gentoo.org> | 2011-09-16 15:20:03 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2011-09-16 15:20:03 +0000 |
commit | 59867c3a73bc9be51a38d97d41a826005fd1dde8 (patch) | |
tree | a1a1433553c2ebc46482ca639544f7bbd299e215 /eclass | |
parent | whitespace (diff) | |
download | gentoo-2-59867c3a73bc9be51a38d97d41a826005fd1dde8.tar.gz gentoo-2-59867c3a73bc9be51a38d97d41a826005fd1dde8.tar.bz2 gentoo-2-59867c3a73bc9be51a38d97d41a826005fd1dde8.zip |
Fix handling whitespace in filenames when looking for .la files.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/autotools-utils.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass index ad5ffea55f16..8a7714790b5c 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.11 2011/09/12 20:32:41 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.12 2011/09/16 15:20:03 mgorny Exp $ # @ECLASS: autotools-utils.eclass # @MAINTAINER: @@ -146,7 +146,7 @@ remove_libtool_files() { debug-print-function ${FUNCNAME} "$@" local f - for f in $(find "${D}" -type f -name '*.la'); do + find "${D}" -type f -name '*.la' -print0 | while read -r -d '' f; do # Keep only .la files with shouldnotlink=yes - likely plugins local shouldnotlink=$(sed -ne '/^shouldnotlink=yes$/p' "${f}") if [[ "$1" == 'all' || -z ${shouldnotlink} ]]; then |