aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_relocate.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index 8c8a0d867..b1a72f1ef 100644
--- a/Library/Homebrew/keg_relocate.rb
+++ b/Library/Homebrew/keg_relocate.rb
@@ -183,11 +183,10 @@ class Keg
def libtool_files
libtool_files = []
- # find .la files, which are stored in lib/
- lib.find do |pn|
+ path.find do |pn|
next if pn.symlink? || pn.directory? || pn.extname != ".la"
libtool_files << pn
- end if lib.directory?
+ end
libtool_files
end