aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-04-24 22:06:14 +0100
committerMike McQuaid2016-04-24 22:06:14 +0100
commit663f51b88eb2f380eca25e21d11df13681bcdc22 (patch)
treeec4878c5e08e6f880ca1654735ce7675542c33f7 /Library
parent1451553188276117a574b2abe8957cb60ef7ced7 (diff)
downloadbrew-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.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