diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index 8c8a0d867d..b1a72f1ef7 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