diff options
| author | Mike McQuaid | 2016-04-24 22:06:14 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-04-24 22:06:14 +0100 |
| commit | 663f51b88eb2f380eca25e21d11df13681bcdc22 (patch) | |
| tree | ec4878c5e08e6f880ca1654735ce7675542c33f7 /Library | |
| parent | 1451553188276117a574b2abe8957cb60ef7ced7 (diff) | |
| download | brew-663f51b88eb2f380eca25e21d11df13681bcdc22.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg_relocate.rb | 5 |
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 |
