summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-09-16 15:20:03 +0000
committerMichał Górny <mgorny@gentoo.org>2011-09-16 15:20:03 +0000
commita3dfd14e827c0eb32035675ee5e9e38167122884 (patch)
tree7b926d127187b3630888780dacac2ae5b4e6223d /eclass/autotools-utils.eclass
parentwhitespace (diff)
downloadhistorical-a3dfd14e827c0eb32035675ee5e9e38167122884.tar.gz
historical-a3dfd14e827c0eb32035675ee5e9e38167122884.tar.bz2
historical-a3dfd14e827c0eb32035675ee5e9e38167122884.zip
Fix handling whitespace in filenames when looking for .la files.
Diffstat (limited to 'eclass/autotools-utils.eclass')
-rw-r--r--eclass/autotools-utils.eclass4
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