From 663f51b88eb2f380eca25e21d11df13681bcdc22 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 24 Apr 2016 22:06:14 +0100 Subject: [PATCH] keg_relocate: don't assume .la files are in lib. Sometimes they are in e.g. libexec but there's no real reason to assume they are anywhere; we want to relocate them regardless. --- Library/Homebrew/keg_relocate.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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